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


in reply to Re: Find Prefix if regex didn't match
in thread Find Prefix if regex didn't match

I try to match only once... but to become faster I try to cut unmatchable stuff at the beginning of my search string so that the next try needn't to start from the beginning again.

At the moment there are some doubts if cutting really makes things better but that is what I see here.