cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1978
Views
0
Helpful
3
Replies

Regular Expression Assistance

john.vincent
Community Member

Using a C350 for Email Encryption Only

I have a regular expression that searches for a number format that could match a medical record number, among other numbers. Getting many false positives due to a matching number being found in many places in the html tags of the email.

Anyone have any good ideas on how to eliminate this? I have quite a few negative lookbehind and negative lookaheads in there already to look for dashes, backslashes, slashes, etc., but still can't weed them all out.

Thanks!

3 Replies 3

kluu_ironport
Level 7
Level 7

Can you paste in some examples of what you're trying to match against?


Using a C350 for Email Encryption Only

I have a regular expression that searches for a number format that could match a medical record number, among other numbers. Getting many false positives due to a matching number being found in many places in the html tags of the email.

Anyone have any good ideas on how to eliminate this? I have quite a few negative lookbehind and negative lookaheads in there already to look for dashes, backslashes, slashes, etc., but still can't weed them all out.

Thanks!

slyweezle_ironport
Community Member

Not sure if you're using it but Kodos is a great little tool I use for quickly testing out reg expressions.

More information from: http://kodos.sourceforge.net/

Pat_ironport
Level 4
Level 4

Looks nice.
Another tool that we use to test Regular Expressions is called "The Regulator", hosted on sourceforge.net as well. You can find the homepage with some screenshots here: http://tools.osherove.com/CoolTools/Regulator/tabid/185/Default.aspx