in reply to Multi-line Regex Performance
Can you tell us what is supposed to be the hash key in this input? It's impossible to tell by reading the code without knowing if there are tabs in your whitespace. And, are these fixed length records? (Or even a fixed number of lines?)
If there are no hashes in the records except the doubled ones, your regex could probably be as simple as /(##[^#]*)/g. (And it would be a lot faster.)
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Multi-line Regex Performance
by pboin (Deacon) on Nov 01, 2005 at 15:52 UTC | |
by sauoq (Abbot) on Nov 01, 2005 at 16:27 UTC |