E
E
Egor Knyazhev2016-07-03 12:42:59
Parsing
Egor Knyazhev, 2016-07-03 12:42:59

Is it possible to convert querySelectorAll to RegExp?

In many html parsers, and in js itself, you can get dom elements using the querySelectorAll function.
I'm going to parse a table from several sites. Through querySelectorAll, a simple string for parsing is obtained: tr[id^='vbpostrow_'] td:nth-child(4
) performance is higher.
Hence the question itself, is it possible to convert querySelectorAll to RegExp?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Taratin, 2016-07-03
@Taraflex

Is it possible to convert querySelectorAll to RegExp

No. For parsing xml / html in qt there is xpath

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question