in reply to Re: Re: Re: Bulk Regex?
in thread Bulk Regex?
ABCD123456 DEFG123456 DEFG998800 DEEE11223344
The code prefixes I have are like:
ABCD12 DEF DEEE11223
In other words, they can be any length. I tried using something like this:
but that was slightly slower than the regex methods.foreach my $pattern (@patterns) { if (substr($fields[7],0,length($pattern)) eq $pattern) { ### Code here last; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Bulk Regex?
by RMGir (Prior) on Aug 29, 2002 at 16:58 UTC |