# Auto-generate Youtube thumbnail URL

**URL:** <https://community.glideapps.com/t/auto-generate-youtube-thumbnail-url/24862>\
**Category:** Ask for Help\
**Created:** [March 29, 2021, 9:00am UTC](https://community.glideapps.com/t/auto-generate-youtube-thumbnail-url/24862 "2021-03-29T09:00:59Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [March 29, 2021, 10:37am UTC](https://community.glideapps.com/t/auto-generate-youtube-thumbnail-url/24862/10 "2021-03-29T10:37:19Z")

</div>

Maybe this…

> [@Using Regex in Glide with ARRAYFORMULA + YouTube thumbnails](https://community.glideapps.com/t/using-regex-in-glide-with-arrayformula-youtube-thumbnails/19243):
>
> Just wanted to share a little tip since Glide doesn’t yet have regular expression matching, and probably a lot of people would like to generate YouTube thumbnails easily for use in Glide. I needed to extract YouTube IDs from URLs and generate thumbnail images with them. Problem is, users can input all kinds of YouTube URLs, with query params after the ID, etc, so it’s not enough to do a simple replace using Glide templates to get rid of a predictable string like “[https://youtu.be/](https://youtu.be/)” - if it we…

Worth noting however that YouTube URL’s come in a variety of formats, and from a quick look the solution offered in that post may not deal with all of them.

Here’s a Stackoverflow thread that’s worth a read…

> <https://stackoverflow.com/questions/3452546/how-do-i-get-the-youtube-video-id-from-a-url>

---

_[View the full topic](https://community.glideapps.com/t/auto-generate-youtube-thumbnail-url/24862)._
