in reply to Re: finding position of first occurence of 3 different stopping criteria
in thread finding position of first occurence of 3 different stopping criteria
See perlvar for @- and @+ variables.print "Matched at $-[1]\n" if $text =~ /^.*?($end1|$end2|$end3)/;
Update: and this is along the same lines as Not_a_Number's post below. sorry for the redundancy...
|
|---|