my $scalar = "abc\ndef\nghi\n"; print $1 . $3 if $scalar =~ /(.*)(\ndef)(.*)/s;
In reply to Re^2: Regex match on implicit default variable ($_) in a script, not a one liner
by Laurent_R
in thread Regex match on implicit default variable ($_) in a script, not a one liner
by Todd Chester
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |