Regular Expressions 101

Library entries

shortcode wordpress

Vote

1

Regular Expression
pcre2

/
\[(\[?)(embed|wp_caption|caption|gallery|playlist|audio|video|code_snippet|democracy|democracy_archives|download)(?![\w-])([^\]\/]*(?:\/(?!\])[^\]\/]*)*?)(?:(\/)\]|\](?:([^\[]*+(?:\[(?!\/\2\])[^\[]*+)*+)\[\/\2\])?)(\]?)
/
gm

Description

Loading markdown...
Submitted by selik - 5 months ago