I am receiving an input like this in my program
lat1,long1;lat2,long2;lat3,long3
latitude longitude pairs separated by columns.
No I want to validate this input so that i may not receive wrong data.
I have created a regular expression:
((^(\-?\d+(\.\d+)?),(\-?\d+(\.\d+)?));?)
problem is it only validates a single pair not a string of pairs separated by ; as i wish.
If you could help me come up with an expression to validate my data I would be grateful.