Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(?:<video[^>].*src=\")(?<src>[^"].*)(?=\?)
/

Description

For use on wordpress on multisite. Finds mp4 videos within the content.

Submitted by Mike Kormendy - 9 years ago