To: "ab" <[EMAIL PROTECTED]>; <[email protected]>
Sent: Friday, February 18, 2005 3:36 PM
Subject: RE: mistake in doku? - a perlintro-example
[EMAIL PROTECTED] in regular expressions means 'any character _but_ @'.
Oh yes, I confused these two:
[^aeiou] matches a single character outside the given set ^ start of string
The other thing was whether the + is inside the parentheses "(...)".
I would think it should have been
/([EMAIL PROTECTED])@(.+)/
/([EMAIL PROTECTED])+@(.+)/ # (the original) /^([EMAIL PROTECTED])@(.+)$/ # this would be even more explicit
I wanted to add ^ and $, I'm however not sure if that's really necessary..
_______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
