Trouble with '$' matching end of string

"Bradley M. Handy" <[email protected]> Sun, 25 May 2003 22:38:47 -0400
Newsgroups gmane.comp.jakarta.oro.user
Message-ID <000601c3232f$f00b3fd0$7b4db3cf@3T1674>
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