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
2
u/bucket3432 Jun 20 '20
I'm thinking of the case where you have
<div>a</div><div>b</div>where the twodivs aren't nested. A greedy quantifier will cause it to matcha</div><div>b, but a non-greedy one will only matchaandb.