in reply to Re: substitution in regular expression
in thread substitution in regular expression
I don't understand the question mark before the print block. Also why the (?!) at the end. I noticed that removing it only prints ABC, but I don't understand why. Thank you(?{print "$1\n"})(?!)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: substitution in regular expression
by trizen (Hermit) on Apr 23, 2014 at 22:52 UTC | |
by aeqr (Novice) on Apr 23, 2014 at 23:05 UTC |