2 ms·
> They aren’t asking to parse all valid xml. They wanted to parse a small known subset. Regex can be an excellent tool in that situation. Rarely better than us
by dragonwriter 6y ago
> They aren’t asking to parse all valid xml. They wanted to parse a small known subset. Regex can be an excellent tool in that situation.
Rarely better than using an existing general XML parser and then validating the additional constraints, especially in terms of implementation and maintenance cost.
- goto11 6y agoThe question is not about parsing, it is about tokenization.