cshirky has asked for the wisdom of the Perl Monks concerning the following question:

I am looping through lotsa data, looking for lines that contain email addresses. The current match is if ( /\@/ ) { &Frobnitz($_); } Would front anchoring a single char match, as in if ( /^.*\@/ ) { &Frobnitz($_); } be faster? Tusen tak, -clay

Originally posted as a Categorized Question.

  • Comment on Regex anchor speed ?: Is /^.*X/ faster than /X/ ?