in reply to Slowness of /i
It's not as bad as generating all combinations. Roughly speaking, the regex engine only needs to compare upper- and lower-case versions of the next character in the pattern, and it gets to move on as soon as it finds a match.
As you suggest, if speed matters it's best to apply lc to the searched text and use a lower-cased regex pattern.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Slowness of /i
by tlm (Prior) on May 01, 2005 at 19:13 UTC |