RegEx for Splitting Hairs
Here's some hairs...
![ths4tmxkvx](https://msdntnarchive.z22.web.core.windows.net/media/2016/12/thS4TMXKVX.jpg)
Wrong hairs!
Here is the intended hairs...
$Hairs = 'PD112345D123456F£45637'
How do we split $Hairs down to just show numbers? RegEx and -Split to the rescue.
$Hairs -split "\D+"
![capture189](https://msdntnarchive.z22.web.core.windows.net/media/2016/12/Capture189.png)
Here we are using anything that isn't a digit as the divider. Simples.