Hi I have a Java program which runs and finds my machines longitude and latitude coordinates, it outputs this as a long string show below,
htt://maps.google.com/maps?q=52.258301,+-7.111900+(192.168.159.1Country:Ireland,City:Waterford-by htt://www.javaquery.com)&iwloc=A&hl=en
What I am trying to do now is to only extract from this string: the IP address and the two coordinates, I have been successful in acquiring the IP address but cant seem to get the two coordinates. The end result would hopefully be
192.168.159.1,52.258301,+-7.111900
So far ive used these expressions to get the IP address
(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)
Which works just fine and then attempted to get the coordinates using this
[0-9]+(\\.[0-9][0-9]?)?
but it only gets the first coordinate followed by it again
Thanks