Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Powershell regex

$
0
0

Hi all, this is a questions for all you regex ppl. and yes i know it is very easy ( not)

i have this string :

Handle gps message: time: null lat: 51.800250000000005 lon: 4.63995 speed: 0.0 course: 323.0 : null"

can you guys help me with a regex only to get lat: 51.8002500000 in a $var and lon: 4.63995 in a seperate $var.

sometime i also see that my string becomes to long so it returns two line , really F&^%d up. anything can do about that ?

thanks guys,

 


Viewing all articles
Browse latest Browse all 8583

Latest Images

Trending Articles



Latest Images