Den här webbläsaren stöds inte längre.
Uppgradera till Microsoft Edge och dra nytta av de senaste funktionerna och säkerhetsuppdateringarna, samt teknisk support.
Here's some hairs...
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+"
Here we are using anything that isn't a digit as the divider. Simples.