Reputation: 3351
I've the below html tags.
<item id="ID1" num="num1">
<item id="ID1">
I want a regex to match <item id="ID1">
and ignore <item id="ID1" num="num1">
.
please let me know how can i do this.
Thanks
Upvotes: 0
Views: 41
Reputation: 126
You can use \S+ to match any non-space characters.
<item id=\S+>
Upvotes: 1