Google-sheets – How to use non capturing groups in google sheets

google sheetsregexregexextract

This is what I intend to do.
enter image description here

But a similar one doesn't work.
enter image description here

As with any problem I post, I still can't solve it after more than two hours of trying. 🙁

https://github.com/google/re2/wiki/Syntax

Best Answer

Try: ={REGEXEXTRACT(D2,"ing?"),REGEXEXTRACT(D2,"ziggo")}

Your example in the question can be written as follows:

={REGEXEXTRACT(A1,"banana"),REGEXEXTRACT(A1,"berry")}