$log = "GET /api/users 200" if ($log -match '(\w+)\s+(\S+)\s+(\d+)') { # verb=GET path=/api/users code=200 "verb=$($matches[1]) path=$($matches[2]) code=$($matches[3])" }
test a pattern, then read the capture groups