Regular Expressions 101

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
<(wp:postmeta)>\s*<(wp:meta_key)>\s*wpcf-lookbook-front-image\s*<\/\2>\s*<(wp:meta_value)>[\s\S]*?<\/\3>\s*<\/\1>\s*
/
g

Description

Allows for easy removal of metadata in WP export file

Submitted by anonymous - 8 years ago