Regular Expressions 101

Community Patterns

1...56789...902

Community Library Entry

-2

Regular Expression
ECMAScript (JavaScript)

/
(< *br)[ \/]*>
/
gm

Description

Detect various possible HTML linebreak tags (eg. <br> <br/> <br />)

Submitted by @benhodgson - 10 years ago