# Extracting first URL from multi-line text

**URL:** <https://community.glideapps.com/t/extracting-first-url-from-multi-line-text/83696>\
**Category:** Ask for Help\
**Created:** [August 6, 2025, 7:23pm UTC](https://community.glideapps.com/t/extracting-first-url-from-multi-line-text/83696 "2025-08-06T19:23:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prolost](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/prolost/32/91021_2.png) [@prolost](https://community.glideapps.com/u/prolost)\
**Post date:** [August 6, 2025, 7:23pm UTC](https://community.glideapps.com/t/extracting-first-url-from-multi-line-text/83696/1 "2025-08-06T19:23:20Z")

</div>

Hi, I’m trying to extract just the first valid URL from a text column, which might contain multiple lines of text.

I’ve tried various regex patterns from simple to complex, but no matter what I try, the Extract Matching Text column remains empty.

Here’s a sample multi-line text:

> Note with a URL  
> [https://proloststore.com](https://proloststore.com)

 ![Screenshot 2025-08-06 at 12.19.49 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/5/95c97f03d12d9e950e2d6885ae4941265609eb89.png)

Thanks in advance for any help!

---

<div class="post-metadata">

**Author:** ![Nicolas\_Joseph](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nicolas_joseph/32/76105_2.png) [@Nicolas\_Joseph](https://community.glideapps.com/u/Nicolas_Joseph)\
**Post date:** [August 6, 2025, 9:07pm UTC](https://community.glideapps.com/t/extracting-first-url-from-multi-line-text/83696/2 "2025-08-06T21:07:32Z")

</div>

Hi @prolost and welcome! 🙂

Here it is:  
`.*?(https?://[^\s'"<>]+).*`

Tested on these examples:  
 ![RegEx](https://us1.discourse-cdn.com/flex002/uploads/glideapps/optimized/3X/4/5/4519a58c532da866c9605331503d8ee07bf45b78_2_690x26.png)

Hope it helps 😉

---

<div class="post-metadata">

**Author:** ![prolost](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/prolost/32/91021_2.png) [@prolost](https://community.glideapps.com/u/prolost)\
**Post date:** [August 6, 2025, 11:35pm UTC](https://community.glideapps.com/t/extracting-first-url-from-multi-line-text/83696/3 "2025-08-06T23:35:04Z")

</div>

That works! Thanks very much.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [August 13, 2025, 11:36pm UTC](https://community.glideapps.com/t/extracting-first-url-from-multi-line-text/83696/4 "2025-08-13T23:36:04Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
