Extracting first URL from multi-line text

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

Thanks in advance for any help!

Hi @prolost and welcome! :slight_smile:

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

Tested on these examples:
RegEx

Hope it helps :wink:

3 Likes

That works! Thanks very much.

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