in reply to How do I avoid regex engine bumping along inside an atomic pattern?
In general you have a more basic problem. Which is that you're trying to use regular expressions for parsing, which they are poorly suited for. Instead you want to use regular expressions for tokenizing, and then move parsing logic into code. The basic trick for that is to use pos and the \G assertion liberally within regular expressions using the /g modifier.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I avoid regex engine bumping along inside an atomic pattern?
by zemane (Novice) on Aug 24, 2008 at 16:55 UTC | |
by tilly (Archbishop) on Aug 24, 2008 at 18:54 UTC |