Text Processing14 / 14
Up next

[regex]::Matches

$s = "id=1 id=22 id=333"
$nums = [regex]::Matches($s, '\d+') | ForEach-Object { $_.Value }
# 1 22 333
$nums -join ' '
What you're solving

collect every match of a pattern