Sub Activity_Create(FirstTime As Boolean)
Dim s As String = "56/1,16973828/65539,393216/1795N "
Dim m As Matcher = Regex.Matcher("(\d+/\d+),(\d+/\d+),(\d+/\d+)", s)
If m.Find Then
Dim lat As Double
lat = FractionToDouble(m.Group(1))
lat = lat + FractionToDouble(m.Group(2)) / 60
lat = lat + FractionToDouble(m.Group(3)) / 3600
Log(lat)
End If
End Sub
Private Sub FractionToDouble(frac As String) As Double
Dim n() As String = Regex.Split("/", frac)
Return n(0) / n(1)
End Sub