Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-01-09 18:19
Flavor·PCRE2 (PHP)

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

Description

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

Submitted by Me