4 ms·TLDR; Use regex if you can treat XML/HTML as a string and get away with it.by beders 1y agoTLDR; Use regex if you can treat XML/HTML as a string and get away with it.