On Thu, Aug 20, 2015 at 02:49:33PM -0400, Joe Quinn wrote: > Good catch! If you are using a new enough perl you might try the > following which should have zero backtracking (the + modifier on > quantifiers works like a cut in prolog): > > From =~ /\@[^@]*+\@/
Talking about an overengineered solution lol. :-D Why not simply use the ancient non-greedy \@.*?\@ that everyone knows.