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


in reply to Re: Capture variable length pattern when it repeats variable times
in thread Capture variable length pattern when it repeats variable times

Work like a charm!! Big Thanks!!

I added $String .= $String for ( 1..4 ) and run the test. Yours cost 0sec while mine took 6secs. Totally be defeated.

This also reminds me that mastering regex is really another great topic, though I can read and understand your code, but believe thaz quite far to figure out one like this by myself! Thank you very much again! =)