I am trying to validate lat,long in a text field and I need regex validation.
Text Input looks like:
32.438667,-85.844944
32.1960111,-86.4252639
32.438667,-85.844944
I am using (?s)(\-?\d+(\.\d+)?),\s*(\-?\d+(\.\d+)?[\r\n\s]*)
DEMO: https://regex101.com/r/lC3iO5/8
If I only enter 1 line of lat,long values - then the validation is picked up and an error is thrown...however, multi lines are not picked up.
Will it support multiLine?
Thanks -
Text Input looks like:
32.438667,-85.844944
32.1960111,-86.4252639
32.438667,-85.844944
I am using (?s)(\-?\d+(\.\d+)?),\s*(\-?\d+(\.\d+)?[\r\n\s]*)
DEMO: https://regex101.com/r/lC3iO5/8
If I only enter 1 line of lat,long values - then the validation is picked up and an error is thrown...however, multi lines are not picked up.
Will it support multiLine?
Thanks -