Page 1 of 1

Email EP not working

Posted: Sat Dec 18, 2004 5:04 pm
by Patchworks
I'm trying an email pattern that I found here on the formus but it is getting an error, "a is not a valid keyword".

This is what I'm using. Any help would be greatly appreciated.

(?:\b([_a-z0-9-]+(?:\.[_a-z0-9-]+)*)@([_a-z0-9-]+(?:\.[_a-z0-9-]+)*?)\.(?:[a-z]{2,4}?)\b)

g

Posted: Mon Dec 20, 2004 4:22 pm
by DataMystic Support
Set the pattern type to perl pattern.

Email EP not working

Posted: Tue Dec 21, 2004 2:51 am
by Patchworks
Not sure what is happening now but I changed from EasyPattern to Perl Pattern and it seems to compile correctly, but when I replace with the 0$ (which I assume it needs to be), it outputs a bunch of other stuff with it. Almost the entire Input file.

Am I outputting the wrong matched sub-expression?

g

Posted: Tue Dec 21, 2004 9:55 pm
by DataMystic Support
$0 is the entire matched expression.

Set the perl pattern options to minimal match (use the [...] button).

Email EP not working

Posted: Wed Dec 22, 2004 12:05 am
by Patchworks
Set the Minimal option and still same results.

g

Posted: Wed Dec 22, 2004 6:56 am
by DataMystic Support
Can you please send me your filter plus a test file or text in the trial run area?

Posted: Thu Dec 23, 2004 6:49 am
by DataMystic Support
Turn on the 'Extract' option of the search/replace filter.