O
O
Optimus2015-09-27 14:03:34
PHP
Optimus, 2015-09-27 14:03:34

Regular expression on an empty PHP block?

Regular regexr.com/3bscg
I wanted blocks one and three to be captured, I don’t understand why it captures two and how to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cat Anton, 2015-09-27
Pyan @marrk2

/<div([^>]*)><\/div>/ig
regexr.com/3bscj

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question