I figured out I had an error in my regular expression.  Sorry any
confusion.

Brad


-------------------------------------------------
Bradley M. Handy                | Office: 517 750 6675
Programmer/Analyst      | Email: [EMAIL PROTECTED]
Spring Arbor University |
-------------------------------------------------
Sun Certified Programmer for the Java 2 Platform
-------------------------------------------------

-----Original Message-----
From: Bradley M. Handy [mailto:[EMAIL PROTECTED] 
Sent: Sunday, May 25, 2003 10:39 PM
To: [EMAIL PROTECTED]
Subject: Trouble with '$' matching end of string

I've got this regular expression:

/^(:([^\x00 \r\n]+) )?(([a-zA-Z]+)|(\d{3}))((( ([^:\x00 \r\n][\x00
\r\n]*)){0,13})( :([^\x00\r\n]*))?)$/

This regular expression should match the following string:

:[EMAIL PROTECTED] USER xxxx 0 * :Name to user


However, the regular expression does not match the string, but if I
remove
the '$' at the end it does match it.  Has anyone else had this problem,
or
is this a fluke?


Brad Handy


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to