Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(\[)((\/?vc_)|(divider)|(image_)|(nectar_))([\w\s="'\-_.\/,:?&\/;%]*)(\])
/
gm

Description

Written to find and delete shortcodes from post content that was added to wordpress posts by visual creator plugins.

Submitted by Me - 2 years ago