R
Reinhard Glauber
ok, I have read the perldoc about regex but I don't understand (maybe because I'm German ;-) )
the thing with the interrogation mark
I search for 'München' in a string and want also the 4 lines before.
I was told to use:
$html =~ /(.*\n)(?:.*\n){4}.*München /;
but why not simple say:
$html =~ /(.*\n){4}.*München /;
thanks
the thing with the interrogation mark
I search for 'München' in a string and want also the 4 lines before.
I was told to use:
$html =~ /(.*\n)(?:.*\n){4}.*München /;
but why not simple say:
$html =~ /(.*\n){4}.*München /;
thanks