Regular Expressions 101

Community Patterns

Single xml tag close to separated

0

Regular Expression
ECMAScript (JavaScript)

/
<((\w{3,100})+[^<>]+)\s\/>
/
g

Description

the tag must be a minumum of 3 characters long so we don't catch any BR, HR, etc.

Submitted by Agent Codesmith - 9 years ago