RE: Trouble with '$' matching end of string
"Bradley M. Handy" <[email protected]> Thu, 29 May 2003 09:47:08 -0400
| Newsgroups | gmane.comp.jakarta.oro.user |
|---|---|
| Message-ID | <[email protected]> |
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]