4 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.
by rblatz 5y 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.
- dragonwriter 5y 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 5y agoThe question is not about parsing, it is about tokenization.