minus-squareRoadieRich@midwest.socialtoProgramming@programming.dev•'Don't parse markup languages with Regex' is an annoying trollpost and it should die... right?linkfedilinkEnglisharrow-up59·3 months agoThe things is, if you try to parse html with a regex, you will always be able to construct valid html that will break it, no matter how complex your regex becomes. linkfedilink
minus-squareRoadieRich@midwest.socialtoProgramming@programming.dev•Hear me out: A scripting language that compiles to bash or sh (any suggestions?)linkfedilinkEnglisharrow-up8arrow-down1·10 months agoPython or Perl. IIRC, I’ve seen systems with a Perl install by default, but not Python. linkfedilink
The things is, if you try to parse html with a regex, you will always be able to construct valid html that will break it, no matter how complex your regex becomes.