Skip to main content

Help with REGEX_EXTRACT

  • February 4, 2022
  • 2 replies
  • 29 views

Hi everyone, Can someone help me with formula Regex_extract. In Airtable I have a field with text in quotes: " “msg”: “2. Have a second version of that same photo with no background”" .
I can’t get rid of the quotes with formula REGEX_EXTRACT.

2 replies

ScottWorld
Forum|alt.badge.img+35
  • Genius
  • February 4, 2022

Do you just want to remove the quotes?

You could do that with the SUBSTITUTE() function:

SUBSTITUTE({Field Name}, "\\"", "")


Justin_Barrett
Forum|alt.badge.img+21

Scott nailed it. That aside, it appears that you’re misunderstanding the purpose of REGEX_EXTRACT(). It’s not designed to selectively remove text from a string and give you what’s left. That what SUBSTITUTE() and REGEX_REPLACE() do. REGEX_EXTRACT() is designed to find text matching a pattern and extract the first such match.