I want to extract from this string
blocked-process-report process id=\"process435d948\" taskpriority=\"0\" logused=\"0\" waitresource=\"RID: 7:1:
Save that as, say $string.
$string
Then do
$string -match 'spid="(\d+)"'
If there is a match, the value you want will be in $matches[1]
$matches[1]