Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
\[\/?(?:b|i|u|sup|url|image|color|size|font){1,}.*?]
/
mgi

Description

Removes BBCode tags with any characters provided after = (e.g. attributes). Omits unknown tags.

Submitted by anonymous - 6 years ago