Skip to main content
Solved

Extract Text from between Brackets in a Single Line Text field

  • January 23, 2021
  • 2 replies
  • 56 views

Forum|alt.badge.img+4

Hi there,

unfortunately, I have not yet found an answer to my question in this forum so I am asking myself. I have a single line text cell which is always structured similarly to the following:

Brand Name Product Name (Color / Color / Color)

I would like to extract only the portion in between the brackets into another cell. Meaning my output would be

Color / Color / Color

Unfortunately, the number of characters before the first bracket and within the brackets will vary. That is my main concern and why I have not yet found a good formula to fix this.

Any help is very much appreciated. Thanks in advance!

Best answer by Bill_French

Hi @Jaap_Terheggen, and welcome to the community!

Like this?

Solution:

REGEX_EXTRACT({RegEx Examples}, '\\((.*?)\\)')

2 replies

Forum|alt.badge.img+19
  • Inspiring
  • Answer
  • January 23, 2021

Hi @Jaap_Terheggen, and welcome to the community!

Like this?

Solution:

REGEX_EXTRACT({RegEx Examples}, '\\((.*?)\\)')


Forum|alt.badge.img+4
  • Author
  • New Participant
  • January 23, 2021

Hi @Jaap_Terheggen, and welcome to the community!

Like this?

Solution:

REGEX_EXTRACT({RegEx Examples}, '\\((.*?)\\)')


Yes, this is exactly it. Thank you so much.