Video & Audio Link Regular Expression

Category: URI | Views Total: 1 view

A regular expression that matches all valid native video & audio links.

Feel free to modify the regex below to add new video/audio extensions.

/^https?:\/\/(.+\/)+.+(\.(avi|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|mp4|ogg|mp3|oga|aac|mpeg|webm))$/i

Video Link Example:

  • http://example.com/sample.mp4
  • https://example.com/sample.avi
  • https://example.com/sample.ogg

See Also:

Rate This Regex
Sending
User Review
0 (0 votes)

Leave a Reply