Answer the question
In order to leave comments, you need to log in
How to parse "country", "starring" from movie search?
Hello, there was a problem with parsing some strings from the movie search
, with these parameters I'm trying to parse a country #страна</t .{0,40} relative">(.*?)</div></td>#si
with such leading roles #<h4>В главных ролях:</h4><ul>(.*?)</ul>#si
Correct what I did wrong.
Answer the question
In order to leave comments, you need to log in
Slashes /
need to be escaped, like this \/
. And between </h4><ul>
you didn't take into account newlines and spaces.
https://regex101.com/r/jK2eB3/2
Why don't you want to take something more convenient, like Zend\Dom\Query ?
Try the Visual Event bookmarklet . I use it myself, it's very convenient.
There is some kind of extension (keywords event). If you use jQuery, then there is a convenient mechanism for tracking hung handlers.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question