in reply to Re^3: Regex question - negatives
in thread Regex question - negatives
..while this only prints out the "test new line" one for some reason?while ($test =~ m{$re}g) { print "FOO:<$1>\n"; }
EDIT, never mind - me being stupid with my syntax ;)$test =~ s{$re}{ print "BLA: $1 \n"; }ge
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Regex question - negatives
by jwkrahn (Abbot) on Jan 13, 2011 at 11:10 UTC | |
|
Re^5: Regex question - negatives
by ELISHEVA (Prior) on Jan 13, 2011 at 11:00 UTC | |
by ultranerds (Hermit) on Jan 13, 2011 at 11:03 UTC |