Regular Expressions 101

Community Patterns

WP: Find VC Shortcodes in export XML

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 - a year ago