Re:Learn to use Awk with hundreds of examples
by AceJohnny2 on Wednesday October 25, 2017 @03:33PM
(#15553346)
> A regex can be used effectively to tokenize XML-like markup
...isn't that how all tokenizers for all (confusingly-named) context-free languages work?
Attribute value minimization would be one limitation, since that regex is for XML, but it's a more robust approach than writing naive "<x>.*</x>"-style regexes.