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
Would front anchoring a single char match, as inif ( /\@/ ) { &Frobnitz($_); }
be faster?if ( /^.*\@/ ) { &Frobnitz($_); }
Tusen tak,
-clay
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Regex anchor speed ?: Is /^.*X/ faster than /X/ ?
by Fastolfe (Vicar) on Nov 08, 2000 at 21:08 UTC | |
Re: Regex anchor speed ?: Is /^.*X/ faster than /X/ ?
by Ovid (Cardinal) on Nov 08, 2000 at 23:16 UTC | |
by Dominus (Parson) on Nov 12, 2000 at 22:25 UTC | |
Re: Regex anchor speed ?: Is /^.*X/ faster than /X/ ?
by extremely (Priest) on Nov 09, 2000 at 16:34 UTC |
Back to
Seekers of Perl Wisdom