Oh Stack Overflow sometimes you are pure poetry
https://mastodon.social/media/K5Xi8Qff_01Dec2ajnM https://mastodon.social/media/rSKWSe-c9Ir4l5QGkDo
https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454
@natecull you can check XHTML with PCRE, actually.
@SoniEx2 @natecull
Its true!https://www.ltg.ed.ac.uk/~ht/XML_Europe_2003.htmlhttp://cl.indiana.edu/~md7/13/545/slides/02-fsa/02-fsa.pdf
Or maybe its falsehttps://stackoverflow.com/questions/6751105/why-its-not-possible-to-use-regex-to-parse-html-xml-a-formal-explanation-in-lahttp://www.welbog.ca/glue/53/XML_is_not_regular
But I'm never really sure with PCREshttps://cs.stackexchange.com/questions/4839/which-languages-do-perl-compatible-regular-expressions-recognize
I don't know anymore. Maybe I should just try RELAXhttps://en.wikipedia.org/wiki/Regular_Language_description_for_XML and use an XML parser.
@SoniEx2 @natecull
Its true!
https://www.ltg.ed.ac.uk/~ht/XML_Europe_2003.html
http://cl.indiana.edu/~md7/13/545/slides/02-fsa/02-fsa.pdf
Or maybe its false
https://stackoverflow.com/questions/6751105/why-its-not-possible-to-use-regex-to-parse-html-xml-a-formal-explanation-in-la
http://www.welbog.ca/glue/53/XML_is_not_regular
But I'm never really sure with PCREs
https://cs.stackexchange.com/questions/4839/which-languages-do-perl-compatible-regular-expressions-recognize
I don't know anymore. Maybe I should just try RELAX
https://en.wikipedia.org/wiki/Regular_Language_description_for_XML and use an XML parser.