Ad
  • Default User Avatar

    I like this solution the best. It's compact and modular. I could rewrite a part of it without having to replace everything else.

    (Still, te function and variable names are quite horrific.)

  • Default User Avatar

    I like this one mainly because it separates the regex form the range test unlike the top answers (which are very clever all-reg ex solutions).
    It also matches both coordinates in one go and don't mix the regex with other logic (like loops for lat and long).

    All in all very readable at a glance. (Or at least that's my very humble 6kyu opinion after looking at a few of the solutions.)