Or lower case each probe string, that's probably cheaper. Of course if the original data was all the same case then some overhead can be avoided. If the probe strings or the large string are used multiple times then it may be worthwhile preprocessing the data.
orperl -pe'tr/acgt/ACGT/' -i big_string_file
perl -pe'tr/ACGT/acgt/' -i probe_string_file
In reply to Re^3: pattern match, speed problem
by hipowls
in thread pattern match, speed problem
by spring
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |