Похожие чаты

Hey guys. I've written most of my html processing from crawled

data using strings and regex, but now I'm stuck in this part, and I guess It's only possible with a DOM parser, but I don't want to use it, do you know how simple dom parsing for nested tags is done using strings library?

6 ответов

20 просмотров

Sounds like a bad idea, you should use a DOM parser, what's the reason you don't want it?

ㅤ- Автор вопроса
Roman Sharkov
Sounds like a bad idea, you should use a DOM parse...

The whole project was written with strings and regex, I hate to include the DOM parser now, I should've used it at the first place.

https://stackoverflow.com/a/1732454/1067003 sorry i had to send this

ㅤ- Автор вопроса
A​kshit
https://stackoverflow.com/a/1732454/1067003 sorry ...

I've read about these, but as the other answer to this question describes: While arbitrary HTML with only a regex is impossible, it's sometimes appropriate to use them for parsing a limited, known set of HTML. It's been working as it should so far because most of the parts weren't a complex set of elements. I'm only stuck at this one part


The whole project was written with strings and reg...

🤨 that is a nonsensical reason sounds like "We started building with a hammer only, so I hate to use a saw for sawing now, can't I just saw with a hammer?!"

ㅤ- Автор вопроса

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта