Strange indeed - not for me - I'm using The Regex Coach from http://weitz.de/regex-coach/ which so far always does a perfect job of testing regex. Maybe it's wrong on this case - who knows! :)
BTW I'm not sure it's necessary to escape the space character within the [square brackets] - I think it's acceptable to just have [ ] without the \ inside. Although it doesn't do any harm having it in there either... Cheers, Jeremy <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, 8 Mar 2007, Jeremy Fairbrass wrote: > >> I just tested those three rules below, and none of them work with >> "www.superveils . com" (ie. having a space both before and >> after that dot). > > Strange, it matches rule 3 with egrep: > > echo 'www.superveils . com' | egrep 'www[\ ]+?\.([a-z0-9\-\ ]?)+\.[\ > ]+(com|net|org)' > www.superveils . com > > Ofcourse you can add other "strange" characters which obfuscate the URL like > Nigel suggested (like &, !, ...) > > K. > >