You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-user@jakarta.apache.org by "Bradley M. Handy" <br...@williamstonfmc.org> on 2003/05/26 04:38:47 UTC
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:
:xxxx!~xxxxx@xx.xxxx.com 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: oro-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: oro-user-help@jakarta.apache.org
RE: Trouble with '$' matching end of string
Posted by "Bradley M. Handy" <br...@williamstonfmc.org>.
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: bhandy@arbor.edu
Spring Arbor University |
-------------------------------------------------
Sun Certified Programmer for the Java 2 Platform
-------------------------------------------------
-----Original Message-----
From: Bradley M. Handy [mailto:brad.handy@williamstonfmc.org]
Sent: Sunday, May 25, 2003 10:39 PM
To: oro-user@jakarta.apache.org
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:
:xxxx!~xxxxx@xx.xxxx.com 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: oro-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: oro-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: oro-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: oro-user-help@jakarta.apache.org