in reply to Re: A line of code matches the question in thread A line of code matches the question
Yes, I would like to match all the contents of the following <div id = "724">. Also I have not used XML :: Tiny, match the content I am not sure, I can not use xml, I match is Can not change the content. But want trying to get a match with a regular match., / M I tried, it seems not work. What should I do?
Re^3: A line of code matches the question
by Anonymous Monk on Aug 10, 2017 at 16:25 UTC
|
You should NOT USE REGULAR EXPRESSIONS to parse HTML. Just don't do it. If you have a good-enough solution that uses two regular expressions, you should NOT try to combine it into one regular expression. Regexes are bad at parsing structured data like HTML, and rapidly become incomprehensible and unmaintainable when you try. | [reply] |
|
I am also a headache for those very long expressions, if you can, then I also like to change the problem simple. Thank you for your suggestion!
| [reply] |
|