I'd like to find a regex that matches on characters surrounded by quotes that contains spaces within them
The examples trying:
adb shell am startservice -n fooApp/barService -a INVOKE --es "key" "key1" --es "value" "value 2 has spaces"
Would only match once on "value 2 has spaces"
So far I've got this
"([^"](?<=\s)[^"]*)"
But it's matching on
" "
between key"
and "key1
and between value"
and "value
and " --es "
...
I feel like I'm close but am missing something critical.
You can use this regex:
and grab captured group #1
RegEx Demo