r/ProgrammerAnimemes • u/bucket3432 • Jun 20 '20
OC Parsing HTML
Enable HLS to view with audio, or disable this notification
1.1k
Upvotes
r/ProgrammerAnimemes • u/bucket3432 • Jun 20 '20
Enable HLS to view with audio, or disable this notification
View all comments
Show parent comment
1
u/bucket3432 Jun 20 '20
I realize that this is just given as an example, but taking this regex at face-value, the usefulness of this regex is limited only to standard tags (i.e no custom elements) with closing tags (e.g. no
<br>and other self-closing tags) and with no attributes, in addition to the no duplicate nested tag restriction (or even if not nested, because.*is greedy).