Skip to main content
Solved

Remove unwanted characters

  • September 23, 2021
  • 2 replies
  • 48 views

Forum|alt.badge.img+12

Hello, this is an example of a value in my NAME field:

1290 Name 3 (Some Words)
1255 Another Name 12 (more words)

I’m looking for a formula that will get rid of the numbers and space before Name, and anything in parentheses) so would result in:

Name
Another Name

Thanks for any help!

Best answer by Per_Carlen

This was as close as I got. Removes all whitespace though.

REGEX_REPLACE(Name,"(\\(.*\\))|(\\d)|(\\s)","")

EDIT: Or this. Leaves whitespace, which aren’t visable in Airtable.

REGEX_REPLACE(Name,"(\\(.*\\))|(\\d)","")

2 replies

Forum|alt.badge.img+2
  • Inspiring
  • Answer
  • September 23, 2021

This was as close as I got. Removes all whitespace though.

REGEX_REPLACE(Name,"(\\(.*\\))|(\\d)|(\\s)","")

EDIT: Or this. Leaves whitespace, which aren’t visable in Airtable.

REGEX_REPLACE(Name,"(\\(.*\\))|(\\d)","")

Forum|alt.badge.img+12
  • Author
  • Known Participant
  • September 27, 2021

This was as close as I got. Removes all whitespace though.

REGEX_REPLACE(Name,"(\\(.*\\))|(\\d)|(\\s)","")

EDIT: Or this. Leaves whitespace, which aren’t visable in Airtable.

REGEX_REPLACE(Name,"(\\(.*\\))|(\\d)","")

Thanks, this seems to work!