adding term Regex function

helpful to prevent the ajax call when [lon,lat] is entered