Regular Expressions 101

Community Patterns

Match fluid-width-video-wrapper YouTube video

1

Regular Expression
PCRE (PHP <7.3)

/
<div class="fluid-width-video-wrapper".*><iframe(.*?)\(?:src="(http?:\/\/)|(https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch?.*?v=))([\w\-]{11,12}).*<\/iframe><\/div>
/
ixU

Description

no description available

Submitted by Erica Franz - 8 years ago