A
A
andrey69rus2015-11-21 03:03:00
PHP
andrey69rus, 2015-11-21 03:03:00

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

4 answer(s)
S
Stalker_RED, 2015-11-21
@Stalker_RED

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 ?

A
atomicus, 2014-02-12
@TotalAMD

Try the Visual Event bookmarklet . I use it myself, it's very convenient.

V
Vitaly Zheltyakov, 2014-01-19
@VitaZheltyakov

There is some kind of extension (keywords event). If you use jQuery, then there is a convenient mechanism for tracking hung handlers.

V
Vasily Ostanin, 2014-01-27
@bazilio91

ex.:
getEventListeners(document);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question