Wouldn't a Parser::RecDescent solution suffer exactly the same problems?
Wouldn't you either have to load the entire file and parse it as a single lump; or parse it line by line until the parser failed, append the next line to the failed line and then re-attempt from the beginning?
In reply to Re^2: Conditional continued matching with regexes
by BrowserUk
in thread Conditional continued matching with regexes
by bart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |