Regular Expressions 101

Library entries

Div shortcode [div]..[/div]

Vote

1

Regular Expression
javascript

/
\[div(?:\sid=["|'](.*?)["|'])?(?:\sclass=["|'](.*?)["|'])?\](.*?)\[\/div\]
/
gms

Description

Loading markdown...
Submitted by Dux Linux - 2 months ago