Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to screen double quotes in Google Docs re2 expressions?

I'm trying to screen double quotes in regular expression on Google Sheets and there's no luck. A1 cell text = some "name" My formula

=REGEXEXTRACT(A1;"\"(.*)\"")

But Google Docs thinks that i'm using quotes for open /close argument. Please help.

Library that GoogleDocs using for regular expressions is re2

like image 871
Evgeny Malkov Avatar asked Apr 24 '19 05:04

Evgeny Malkov


2 Answers

You need to escape a doublequote " with another doublequote like this "".

Try using this,

=REGEXEXTRACT(A1,"""(.*)""")

Verified and this works well.

like image 79
Pushpesh Kumar Rajwanshi Avatar answered Sep 19 '22 17:09

Pushpesh Kumar Rajwanshi


=REGEXEXTRACT(A1; "[""]+(\w*)")

like image 44
Evgeny Malkov Avatar answered Sep 20 '22 17:09

Evgeny Malkov