in reply to Pattern Matching help needed
For letters and numbers you should use the \w-metacharacter. \s means all sorts of whitespaces.
so
should do the job.$match =~ /\@(\w+)\./;
Apart from that is a view at man perlre highly recommended.
greetings, tos
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Pattern Matching help needed
by Anonymous Monk on Jun 27, 2003 at 14:35 UTC |