http://qs1969.pair.com?node_id=826707


in reply to matching any string except a regex

This is probably on the borderline of what should be attempted with just regexen. The approach I'd take would be:

When the regex going gets tough, the tough get writing simple parsers and it's not so tough any more.

The cake is a lie.
The cake is a lie.
The cake is a lie.