Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(<iframe.*?)(src="https:\/\/giphy.com\/embed\/)([^ "]*?)(\".*?)(><\/iframe>)
/
gm

Description

regex to convert giphy iframes to images giphy for newsletters

Submitted by dares - 3 years ago