Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I try to use
REGEXEXTRACT
on google spreadsheet but all the time I have #ERROR
I have on my cell
1-24 sur 3 964 résultats pour "patate douce"
And my regex is :
(\s([0-9\s]+)\s)|(^([0-9]+)\s)|(\s+([0-9]+))
I tried my regex on
regex101
When I tried the simple regex
=REGEXEXTRACT(A2, "[0-9]+")
given on
this officiel example
, I had ERROR too.
Can you help me?
Thanks
–
–
–
The error you get on the regex you posted lets me think you are facing a locale issue. Some locales use a semicolon (;) as an argument separator instead of a comma. So, assuming the string is A1 try
=regexextract(A1; "\s[0-9\s]+\s")
Also, see this quick example
UPDATE: I changed the formula to
=iferror(arrayformula(if(len(A1:A); regexextract(A1:A; "r\s(.+)\sré");)))
–
–