in reply to Regex, capturing variables vs. speed
The three use simpler regexen, so they run faster. A particular drain on your combined regex is the ".*" (dot-star) you use to join the interesting ones. Each will cause the regex to match to the end of the line, then backtrack to find the following fixed text. ".*?" would be a faster joining regex.
See Ovid's Death to Dot Star!
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex, capturing variables vs. speed
by sauoq (Abbot) on Oct 30, 2005 at 21:46 UTC |