^start of line
Comment: Possible: http://
Comment: https://
Comment: //
Non-Capturing Group(?:(?:https?:)?//)? ?repeats the group contents below at most once:
Non-Capturing Group(?:https?:)? ?repeats the group contents below at most once:
httpthe literal text http (case sensitive) s?optionally matches the literal s (11510 / 1638 / 7316) (case sensitive)
:the literal : (5810 / 728 / 3A16)
Comment: Possible: www.
Comment: m.
Non-Capturing Group(?:(?:www|m)\.)? ?repeats the group contents below at most once:
Non-Capturing Group(?:www|m) wwwthe literal text www (case sensitive) mthe literal m (10910 / 1558 / 6D16) (case sensitive)
\.the literal . (4610 / 568 / 2E16)
Comment: Possible: youtube.com
Comment: youtube-nocookie.com
Comment: youtu.be
Non-Capturing Group(?:(?:youtube(?:-nocookie)?\.com|youtu.be))? ?repeats the group contents below at most once:
Non-Capturing Group(?:youtube(?:-nocookie)?\.com|youtu.be) 1st Alternativeyoutube(?:-nocookie)?\.com youtubethe literal text youtube (case sensitive) Non-Capturing Group(?:-nocookie)? ?repeats the group contents below at most once:
-nocookiethe literal text -nocookie (case sensitive) \.the literal . (4610 / 568 / 2E16)
comthe literal text com (case sensitive) yoututhe literal text youtu (case sensitive) .any character (except for line terminators)
bethe literal text be (case sensitive) Comment: Possible: /[a-zA-Z0-9_-]+?v=
Comment: /embed/
Comment: /v/
Non-Capturing Group(?:/(?:[\w-]+\?v=|embed/|v/)?)? ?repeats the group contents below at most once:
/the literal / (4710 / 578 / 2F16)
Non-Capturing Group(?:[\w-]+\?v=|embed/|v/)? ?repeats the group contents below at most once:
1st Alternative[\w-]+\?v= +matches at least one character from the set below:
\wany word character
-the literal - (4510 / 558 / 2D16)
\?the literal ? (6310 / 778 / 3F16)
v=the literal text v= (case sensitive) embed/the literal text embed/ (case sensitive) v/the literal text v/ (case sensitive) Comment: Possible: oembed?url=...v=
Non-Capturing Group(?:oembed\?url=.*\?v%3D)? ?repeats the group contents below at most once:
oembedthe literal text oembed (case sensitive) \?the literal ? (6310 / 778 / 3F16)
url=the literal text url= (case sensitive) .*any character (except for line terminators), repeated any number of times
\?the literal ? (6310 / 778 / 3F16)
v%3Dthe literal text v%3D (case sensitive) Comment: TOKEN: [a-zA-Z0-9_-]
{11}matches exactly 11 characters from the set below:
\wany word character
-the literal - (4510 / 558 / 2D16)
Comment: Possible: Anything not space+
Non-Capturing Group(?:\S+)? ?repeats the group contents below at most once:
\S+any non-whitespace character, repeated at least once
Comment: EOF pattern with x(PCRE_EXTENDED) flag:
$end of line
x modifier: extended. Ignores unescaped whitespace and comments outside character classes
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string
g modifier: global. Finds all matches instead of stopping after the first