Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
Geo
#latitude
#geo
#coordinates
#location

Latitude

Matches a geographic latitude coordinate between -90 and +90 degrees, with up to 6 decimal places.

GPS coordinate inputMap integrationsLocation-based services
/
/
Risk
Test String
7 matches
-?-'-' — literal character — repeated zero or one time (optional) · ? — zero or one time (optional)
(…)Group #1Capturing group — captures matched text for reuse or extraction
[…]?Character class […]Matches any single character listed in this set — repeated zero or one time (optional) · ? — zero or one time (optional)
\ddigit\d — digit (0–9)
(…)?Group #2Capturing group — captures matched text for reuse or extraction — repeated zero or one time (optional) · ? — zero or one time (optional)
||| — alternation: matches expression on left OR right
99'9' — literal character
00'0' — literal character
(…)?Group #3Capturing group — captures matched text for reuse or extraction — repeated zero or one time (optional) · ? — zero or one time (optional)
Pattern: 38 charsInput: 32 chars
100% client-side · private

Valid Examples

  • 51.5074
  • -33.8688
  • 0
  • 90
  • -90.000000

Invalid Examples

  • 91.0
  • -90.1
  • abc
  • 51.5074.12

Usage & Integration

Validate Latitude natively in your backend or frontend without copying regex strings.

Node / Edge

import { validate } from '@regexto/validators';

validate('latitude', '...');

Python

from regexto_validators import validate

validate("latitude", "...")

Go

import "github.com/regex-to/validators-go"

valid, err := validators.Validate("latitude", "...")

PHP

use RegexTo\Validators\Validator;

Validator::validate('latitude', '...');

Rust

use regexto_validators::validate;

let is_valid = validate("latitude", "...").unwrap();