Published
- 1 min read
Extracting specific data from a string with regex and Powershell
The solution for this is noted below
Extracting specific data from a string with regex and Powershell
Solution
$found = $string -match '.*spid="(\d+)".*'
if ($found) {
$spid = $matches[1]
}
Try other methods by searching on the site. That is if this doesn’t work