What algorithms and data structures are used?
One way I came to think of was to traverse the string and find the first occurrence of the closing tag: </ul> then check if there are other beginning tags <ul in between and expand the traversing range.
I wasn't able to find a good article on web, I guess I have to look through available libraries to learn. This is like a riddle for me
Does it matter? You won't be writing one, will you?
you don't want to role your own, do you? Sounds like a bad idea if all you want is to parse some HTML to solve a business issue
Not for this project, I'm just curious on the way its achieved. That might train my brain for same problems :D
You'd probably be writing a recursive descent parser, it's quite fun btw
It does sound fun, I'm already looking into it. I hope by fun you didn't mean the quantum physic formulas
it ain't that difficult, also not quite trivial tho and a little time consuming
What doesn't kill you makes you stronger
time kills you, there ain't enough of it 😅
Who said this is the only time we live in. I'll die and born a better programmer
highly doubt it's possible 😅
It's how I calm myself when I'm reminded of the time
Обсуждают сегодня