How to extract YouTube IDs with Regex and getting poster images

Leaving this for others who might need it (as did I). Extracting the YouTube ID has many benefits, including easier access to the YouTube API functions as well as pulling the default poster image for the video.

To achieve this simply use “:Extract with Regex” and use the following expression:

To get YouTube’s poster image (the image that is shown before playback). Just use this path:{YouTube video ID}/0.jpg

It should work for over 90% of YouTube domains/path variations. You can test if this works for you here.


Bookmarked :smiley:

1 Like

I love me some regex.

Mine was this absurdity:

1 Like

Thanks for sharing your test data, too. FYI:

1 Like

Thanks @rico.trevisan did not know that!