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