Regular Expressions 101

Library entries

YouTube Iframe parser

Vote

2

Regular Expression
pcre

/
<iframe [^>]*?src=\"https?:\/\/(?:www\.)?youtu(?:be)?\.(?:com|be)\/(?:embed|watch)\/([^\?]*?)\?[^>]*?>\s*<\/iframe>
/

Description

Loading markdown...
Submitted by anonymous - 6 years ago