# Extracting URL's from String - Regexextract

**URL:** <https://connect.superhuman.com/t/extracting-urls-from-string-regexextract/15900>\
**Category:** Ask the Community\
**Created:** [May 13, 2020, 2:26am UTC](https://connect.superhuman.com/t/extracting-urls-from-string-regexextract/15900 "2020-05-13T02:26:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jay\_Lefebvre](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/jay_lefebvre/32/9293_2.png) [@Jay\_Lefebvre](https://connect.superhuman.com/u/Jay_Lefebvre)\
**Post date:** [May 13, 2020, 2:26am UTC](https://connect.superhuman.com/t/extracting-urls-from-string-regexextract/15900/1 "2020-05-13T02:26:05Z")

</div>

Hi there!

I’ve been trying to pull URL’s out of a text string but I can only pull one result so far. The goal is to make this work even if the string contains multiple urls… Here’s what I did:

https://coda.io/embed/efcK59hMGh/_su_At?viewMode=embedplay&hideSections=true

If anyone knows how to do this, this will help so much! Thanks in advance 🙏

---

<div class="post-metadata">

**Author:** ![Saul\_Garcia](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/saul_garcia/32/16406_2.png) [@Saul\_Garcia](https://connect.superhuman.com/u/Saul_Garcia)\
**Post date:** [May 13, 2020, 4:28pm UTC](https://connect.superhuman.com/t/extracting-urls-from-string-regexextract/15900/2 "2020-05-13T16:28:11Z")

</div>

Hello there @Jay_Lefebvre!

Would you mind changing the access to the doc so we can see your file? Thanks!

![Share a document publicly](https://global.discourse-cdn.com/coda1/original/2X/4/4f94f67101fdc2e3c1b6487c2089718d26cba31a.png)

---

<div class="post-metadata">

**Author:** ![Jay\_Lefebvre](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/jay_lefebvre/32/9293_2.png) [@Jay\_Lefebvre](https://connect.superhuman.com/u/Jay_Lefebvre)\
**Post date:** [May 13, 2020, 10:17pm UTC](https://connect.superhuman.com/t/extracting-urls-from-string-regexextract/15900/3 "2020-05-13T22:17:44Z")

</div>

Done! Sorry for that 🤦‍♂️ @Saul_Garcia

---

<div class="post-metadata">

**Author:** ![Paul\_Danyliuk](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/paul_danyliuk/32/27228_2.png) [@Paul\_Danyliuk](https://connect.superhuman.com/u/Paul_Danyliuk)\
**Post date:** [May 14, 2020, 8:44am UTC](https://connect.superhuman.com/t/extracting-urls-from-string-regexextract/15900/4 "2020-05-14T08:44:47Z")

</div>

Add the `g` (global) flag as the second argument:

![image](https://global.discourse-cdn.com/coda1/original/2X/8/853a2654903364523a199cf0007b42f3df52d7b0.png)

---

<div class="post-metadata">

**Author:** ![Jay\_Lefebvre](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/jay_lefebvre/32/9293_2.png) [@Jay\_Lefebvre](https://connect.superhuman.com/u/Jay_Lefebvre)\
**Post date:** [May 14, 2020, 2:33pm UTC](https://connect.superhuman.com/t/extracting-urls-from-string-regexextract/15900/5 "2020-05-14T14:33:48Z")

</div>

Thank you! @Paul_Danyliuk
