News for hackers. Stuff that matters.
Re:Solving the regex of madness, and snarky answers on Stack... by IshKebab on Monday May 10, 2021 @02:01PM (#27108893)
That's exactly what I'm arguing. Especially because it's very unlikely that you'd write an XML/HTML parser yourself instead of using somebody else's well-tested library.
Re:Solving the regex of madness, and snarky answers on Stack... by goto11 on Tuesday May 11, 2021 @09:48AM (#27118094)
OK but these are two separate question.

Of course you should use an existing library if it solves the exact problem you have. Don't waste time re-implementing the wheel unless you are doing if for educational purposes. Whether such a library used regexes or not under the hood would be irrelevant as long as it works and it well tested.

But I would certainly like to hear an argument why you think a regex is less robust that a similar manual character-by-character matcher.