trying to sort out a regular expression for the following string:
51.4920302, -0.0850667
So far I have:@"^[0-9]*,{-}[0-9]*$"
but it doesn't seem to be working.
Any thought, greatly received.
The whole snippet is:
[RegularExpression(@"^[0-9]*,{-}[0-9]*$", ErrorMessage = "Must enter a valid coordinate")]
public string FaveRunLatLng2 { get; set; }
Thanks.