T
T
TechNOIR2017-10-11 22:37:27
Regular Expressions
TechNOIR, 2017-10-11 22:37:27

Regular expression. How to skip everything between two DIV blocks?

Good afternoon!
Can you please tell me how to get only the values ​​of 2 blocks using a regular expression, skipping everything in between?
those.

<div class="1">Получить</div>Пропустить всё<div class="2">Получить</div>

Tried like this:
<div class="1">.+?</div>.+?<div class="2">.+?</div>

But I get both blocks and what's in between ..
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2017-10-11
@slo_nik

Goodnight.
Try starting with the following expression .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question