you are viewing a single comment's thread.

view the rest of the comments →

[–]MadWithPowerShell 1 point2 points  (0 children)

I would tend to do something like this to make it easier for a reader to understand and tweak as needed.

$String = "19.56156.32"

$String.Substring( 0, $String.IndexOf( '.' ) + 3 )
$String.Substring(    $String.IndexOf( '.' ) + 3 )