- or download this
>perl -wMstrict -le
"my $s = qq{\n\n};
...
print $s =~ /(\n$\n)/m ? qq{:$1:} : 'no match';
"
no match
- or download this
>perl -wMstrict -le
"my $s = qq{\n\n};
...
:
:
- or download this
string=<a\n>
no modifier: regex=/^a$\n/
...
[ ... ]
m modifier (multi line mode): regex=/^a$\n/m
match => $ matches only boundary, \n matches newline
- or download this
>perl -wMstrict -le
"my $s = qq{a\n};
...
"
NO match
NO match
- or download this
>perl -wMstrict -le
"my $s = qq{a\n};
...
"
match
match