in reply to Re^2: Parse::RecDescent: problem with grammar and error reporting
in thread Parse::RecDescent: problem with grammar and error reporting
Try this:$ perl -wE 'q{Even more test address@test.com @20} =~ /[^@\n]*(?:\S@[^ +@\n]*)*/ and say $&' Even more test address $ perl -wE 'q{Even more test address@test.com @20} =~ /[^@\n]*(?:\S@[^ +@\n]*)+/ and say $&' Even more test address@test.com
/[^\S\n]*(?:[^\s@]+@?[^\S\n]*)*/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Parse::RecDescent: problem with grammar and error reporting
by kikuchiyo (Hermit) on Jan 20, 2012 at 12:44 UTC | |
by JavaFan (Canon) on Jan 20, 2012 at 13:18 UTC | |
by kikuchiyo (Hermit) on Jan 20, 2012 at 13:56 UTC |