4 ms·
That is a fair point. If you're sure you have a regular subset of HTML, a regex is a great way to extract data from it. In my experience (again about once a ye
by apeace 10y ago
That is a fair point. If you're sure you have a regular subset of HTML, a regex is a great way to extract data from it.
In my experience (again about once a year), I have always seen this done with HTML that is coming in from the wild. After all, if your HTML is coming from a source you control, you most often have a means to provide the data in a format other than HTML.