I am trying to find the attributes of HTML
tags. Regular expression works corectly. But, data is not captured.
My regex:
/\<(\w*)\s+[(\w*)(?=\=\".*\")\s+]+\>/
Sample input:
<a href="sdfds" val="fdf">
Regular expression is working fine. But, the text inside the capturing groups of []
which is \w*
are not captured.
Help me solve this.
Thank you.