in reply to Regex returns match the first time. It returns everything thereafter
does?/line/../\\Z/
What it actually parses out as is this:
That means it's a flip-flip (perlop for more info on that), which means it stays true after the first regex matches until the 2nd matches (which it probably never does).perl -MO=Deparse -e'$line =~ /line/../\\Z/' $line =~ /line/ .. /\\Z/;
What were you trying to do?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex returns match the first time. It returns everything thereafter
by guitarplayer68 (Novice) on Nov 15, 2013 at 20:45 UTC |