in reply to Help with Metacharacters syntax
With disclaimers about matching general email addresses, the first problem is solved when you realize you want the regex to stop matching on whitespace. You have .* there which matches all of anything. Try this,
if (/(abuse\@\S*)/) { # ... }
For the second problem, you want quantifiers,
See perlre and perlretut, which you can view locally with perldoc.if (/(Net-\d{1,3)-\d{1,3)-\d{1,3)-0-1)/) { # ... }
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help with Metacharacters syntax
by JJB (Novice) on Jun 20, 2004 at 14:53 UTC |