rodrigosantosbr

Regex get all named tags in an html string

Jan 15th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!

Site: https://regex101.com/


Expression:

<[^>]*name[\s]*=[\s]*"?[^\w_]*"?[^>]*>

Example text:

<div name="div1">
<div class="teste">
<a name="a2">
<br>
Add Comment
Please, Sign In to add comment