Extracting Latitude and Longitude from a string using java regrex : "Tracking info Latitude: 3.9574667 Longitude: 7.44882167" The structure of the message string will not change only the figure will be changing. Or any link that can help will be apreciated.