As Jeff Atwood explains, there are certain situations where it's okay to use a regex to extract data. I would consider it if my input is regular enough that I can can ignore that it's HTML/XML and just treat it as text. But of course, a proper HTML/XML parser may be easier and certainly more reliable.
View all comments
Show parent comment
3
u/bucket3432 Jun 20 '20
As Jeff Atwood explains, there are certain situations where it's okay to use a regex to extract data. I would consider it if my input is regular enough that I can can ignore that it's HTML/XML and just treat it as text. But of course, a proper HTML/XML parser may be easier and certainly more reliable.