Regular Expressions 101

Library entries

Match popular media type such as audio, images and/or videos

Vote

0

Regular Expression
javascript

/
(audio|image|video|x-(?:[0-9A-Za-z!#$%&'*+.^_`|~-]+))\/([0-9A-Za-z!#$%&'*+.^_`|~-]+)
/
g

Description

Loading markdown...
Submitted by Javier Carrion - 4 months ago