Reputation: 27
There are numbers directly after the following string:
"balances":[{"balance":
Stuck with escaping the quotes and anything else. Nothing I tried worked unfortunately.
=REGEXEXTRACT(A1,"(?:"balances":[{"balance":)\K\d+")
Upvotes: 0
Views: 412
Reputation: 626920
You should remember that
REGEXEXTRACT
you need to use a capturing group to enclose that part with a pair of unescaped parentheses\G
, \K
, (*SKIP)(*FAIL)
and what not. If you want to test a regex online that should be RE2 compatible test it at http://regex101.com using Golang
regex flavor.Use
=REGEXEXTRACT(A1,"""balances"":\[{""balance"":(\d+)")
See the regex demo.
Upvotes: 1