in reply to Re: RegEx to find the index of the character '@' in an Email address
in thread RegEx to find the index of the character '@' in an Email address
Regular expressions are not stringsRight, but numbers aren't strings either.
Remember, this is Perl. If you use a string as a regexp, Perl will treat it as a regexp.
works just fine.my ($local_part) = $mail =~ '^([^@]*)';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: RegEx to find the index of the character '@' in an Email address
by Corion (Patriarch) on Jul 26, 2010 at 16:05 UTC |