How can I speed up my Perl regex matching?
Posted
by est
on Stack Overflow
See other posts from Stack Overflow
or by est
Published on 2009-10-20T03:48:12Z
Indexed on
2010/04/23
23:33 UTC
Read the original article
Hit count: 212
I want to capture several text using the following regex:
$text_normal = qr{^(\/F\d+) FF (.*?) SCF SF (.*?) MV (\(.*?)SH$};
A sample of the string is like below:
my $text = '/F12345 FF FF this is SCF SF really MV (important stuff SH';
Can that be rewritten to speed up the matching?
© Stack Overflow or respective owner