Regular Expressions 101

Mp4 Url RegEx

Open Workspace
  • PCRE2 (PHP)
  • Match
1

Regular Expression

/
^(?:https?:\/\/)?(?:www\.)?(?:.+?)\.mp4$
/
i

Description

Match a http, https and local path url that contains Mp4

Submitted by Anonymous