http://www.perlmonks.org?node_id=1058622


in reply to Re^2: Lookahead assertion
in thread Lookahead assertion

Thanks for your reply .. and I checked, the final dot makes no difference in the result ..

DB<6> @w3 = ( $foo =~ /(?=(\d{3}))/g ); DB<7> x @w3 0 123 1 234 2 345 3 456 4 567 5 679 6 790 DB<8> @w3 = ( $foo =~ /(?=(\d{3}))./g ); DB<9> !7 x @w3 0 123 1 234 2 345 3 456 4 567 5 679 6 790
Good to know.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.