-2

Using Regex in Google sheets, I need to extract "content1" in a separate cell (B1) from the 1st bracketed set without the brackets

This entire string will appear in cell A1: [content1] [content2][content3] [content4][content5]

The content in the brackets will vary in length and may contain symbols and/or numbers (ex:"JPS | 5")

There will always be 5 bracket sets

enter image description here

0

1 Answer 1

0

You may try using REGEXEXTRACT with the pattern [^\[\]]+

=REGEXEXTRACT(A1, "[^\[\]]+") 

The REGEXEXTRACT function by default will return the first match, which in this case should be content1.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.