On 9/20/07, Christian Rehkopf <[EMAIL PROTECTED]> wrote:
> http://[\w\.]+@|\w<[a-z0-9]+[abcdfghjklmnpqrstuvwxyz0-9]{4}[a-z0-9]*>|su
> bject: [^\n]*     \S

There are multiple regular expressions (regex) there, delimited it a
pipe character ( | ).  The pipe is used as an alternation, or OR
expression.

The last regex is your match problem:

----------
subject: [^\n]*     \S
----------

Lets break it down:

----------
subject: = match "subject: "

[^\n] = dont match a newline (LF, NL). ^ in a class match (whatever is
in brackets) makes it a negative match. \n is a newline metachacter

* = match 0 or more times (so, no new lines 0 or more times)

"     " (without quotes) - 5 blank spaces

\S = match a non-whitespace character
----------

So, hopefully you can now make sense of how/why this matched your email.

HTH

-- 
ME2

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Assp-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-user

Reply via email to