regexmatch.dev
Explore
Open main menu
Save & Share
Facebook
Twitter
Tumblr
E-Mail
Pinterest
LinkedIn
Reddit
Extract domain and path from video embeds
Published on Tue Mar 01 2022
Regex
Test String
<iframe width="420" height="315" src="https://www.youtube.com/embed/S6psuUt8caM" frameborder="0" allowfullscreen></iframe> <iframe width="420" height="315" src='https://www.youtube.com/embed/S6psuUt8caM' frameborder="0" allowfullscreen></iframe> <iframe width="420" height="315" src=https://www.youtube.com/embed/S6psuUt8caM frameborder="0" allowfullscreen></iframe> <iframe src="http://livestream.com/accounts/2600567/events/3949236/videos/85086024/player?autoPlay=false&height=360&mute=false&width=640" width="640" height="360" frameborder="0" scrolling="no"></iframe> <iframe src="https://player.vimeo.com/video/130848521?color=ffffff&badge=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> <p><a href="https://vimeo.com/130848521">samuel-613</a> from <a href="https://vimeo.com/billylumby">Billy Lumby</a> on <a href="https://vimeo.com">Vimeo</a>.</p>
Additional matching regexes for
Extract domain and path from video embeds
Find and extract email domain
Find and extract email domain. Ex:
[email protected]
-> extract 'example.pt'
youtube url match
extract video id, index, play list id from youtube URL
youtube url match
extract video id, index, play list id from youtube url
extract subdomain(if available) or domain from URL
This regex should extract the subdomain, if any, or the domain, if no subdomain is used, from an arbitrary URL
Youtube ID
get youtube video ID
youku video_id
parse youku video id
youku
parse youku video id
Screencast.com video url regex
Screencast.com video url regex
Facebook Video ID from link
Matches the video id in FB links
Youtube video URL or empty
Matches correct youtube video urls and empty strings.