Wednesday, 15 April 2015

javascript - Find first open tag using regex -



javascript - Find first open tag using regex -

this question has reply here:

remove unnecessary close tags using regex 2 answers

i tried find first open tag using regex, reason, finds lastly one.

example: http://regex101.com/r/py4bi0

the greenish part should end @ sec line. wrong? how should prepare it?

how this?

(\<\w.*?\>)

http://regex101.com/r/em4fk3

javascript php regex

No comments:

Post a Comment