[Regex]::Matches($string, '-?\d*\.?\d+').Value
List integers or floats that are positive or negative inside a string
PS C:\> $string = 'The first 10 digits of pi are 3.1415926535.' >> [Regex]::Matches($string, '-?\d*\.?\d+').Value 10 3.1415926535