in reply to Pattern Matching help needed

if you are in doubt about whether a character is a metacharacter in a regex, there is no harm in tyring to escape the sign. Then f.i. you could do this with the '@'-sign as you did it with the dot.

For letters and numbers you should use the \w-metacharacter. \s means all sorts of whitespaces.

so

$match =~ /\@(\w+)\./;
should do the job.

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
    Wow, Thanks for all the responses!