RE: [Declude.JunkMail] Regex Greed Issue

2011-11-04 Thread David Barker
You could try restricting the number of characters for the actual domain. I would suggest something like this: http\:\/\/www.+\.com\..{4,15}\.com Also in many cases the www will not be present and the real domain will not be a .com so you would need to use something like this:

RE: [Declude.JunkMail] Regex Greed Issue

2011-11-04 Thread Rick Davidson
The character limits do work, that is how I originally tested it, looking for a better solution I consulted our lead programming nerd, he hipped me to the ?, if it actually does work it will be a great help in other regex rules do you have an answer on whether the ? should be working? I will

RE: [Declude.JunkMail] Regex Greed Issue

2011-11-04 Thread David Barker
. Means Match any single character that is not a line break character. *? Means between zero and unlimited times, as few times as possible (lazy) So the example of .*?\.com.*?\.com Would match on the first .com and the 2nd .com David -Original Message- From: Rick Davidson