Detecting Valid Latitude and Longitude Pairs

  • + 2 comments

    Used the regex directly but yours is cleaner. Good Job

    Reg = r"([+-]?(90(.0+)?|[1-8]\d(.\d+)?|\d(.\d+)?), [+-]?(180(.0+)?|1[0-7]\d(.\d+)?|\d{2}(.\d+)?|\d(.\d+)?))"