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 =~ '^([^@]*)';
In reply to Re^2: RegEx to find the index of the character '@' in an Email address
by JavaFan
in thread RegEx to find the index of the character '@' in an Email address
by itsmetom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |