10

People do that.
RegExp is bae <3

Comments
  • 8
    Oh boy, he's parsing HTML with regex...
    (Not that I haven't done the same...)
  • 1
    @SZenC as someone who has never even had the requirement to do that, I will play along and assume that it is as bad an idea as making git commits via dragging & dropping files to upload in the browser.
  • 1
    @alcatraz627 in this case it isn't a big deal, but when you're trying to access properties from a tag, or just a lot of tags in general, it is a better idea to use an XML/HTML parser. Using regex in such cases will only come to bite you in the ass when the HTML changes ever so slightly.
Add Comment