Skip to main content
Solved

Extract URL from text field in Airtable

  • March 4, 2023
  • 4 replies
  • 83 views

Forum|alt.badge.img+2

Hello community

Again faced with this, hope to get a simple workaround for this where I can get a formula that extracts URL from a text field. 

Thanks

Best answer by TheTimeSavingCo

You can use regex for this.  Try a formula field with the following:

 

REGEX_EXTRACT([FIELD NAME], '\\((.*?)\\)')

 

4 replies

TheTimeSavingCo
Forum|alt.badge.img+31

You can use regex for this.  Try a formula field with the following:

 

REGEX_EXTRACT([FIELD NAME], '\\((.*?)\\)')

 


Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • March 4, 2023

You can use regex for this.  Try a formula field with the following:

 

REGEX_EXTRACT([FIELD NAME], '\\((.*?)\\)')

 


Yeah it works, 

Thank you


Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • March 4, 2023

You can use regex for this.  Try a formula field with the following:

 

REGEX_EXTRACT([FIELD NAME], '\\((.*?)\\)')

 


is there a way to remove the error message from the empty field


Forum|alt.badge.img+3
  • Participating Frequently
  • March 16, 2023

is there a way to remove the error message from the empty field


You could make the REGEX formula @TheTimeSavingCo  provided above conditional on whether or not there is an attachment in your "Display attachment" field.  Try this (adjusting the field names as necessary):

IF({Field name}, REGEX_EXTRACT({Field name}, '\\((.*?)\\)'))