Yogesh's Blog

Sharing me with blog…

April 14th, 2016

RegEx to find tags

Java, Javascript, by Yogesh.

Starting of Tag:
JavaScript: /<([A-Z,a-z,0-9])\w+>/g
Java: <([A-Z,a-z,0-9])\\w+>

Closing of Tag:
JavaScript: /<\/([A-Z,a-z,0-9])\w+>/g
Java: </([A-Z,a-z,0-9])\\w+>

Back Top

Leave a Reply

Your email address will not be published. Required fields are marked *