In this example since its a space it matches it fine. But let's say a regioname doesn't have a space it matches the rest. I just want to match only stuff in the quotes.
'geoRegionName="Washington" geoCityName="Bonney Lake"' -match '(?<=geoRegionName=)\S+.*?"'
$matches = "Bonney Lake"
This works fine because of space
'geoRegionName="Washington " geoCityName="Bonney Lake"' -match '(?<=geoRegionName=)\S+.*?"'
"Washington "
But no space and it starts matching other items. Please help me to only match quotes, including cases where name may not be just one word.
'geoRegionName="Washington" geoCityName="Bonney Lake"' -match '(?<=geoRegionName=)\S+.*?"'
"Washington" geoCityName="