Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
Phone
#phone
#e164
#international
#mobile

Phone — E.164 International

Matches an international phone number in E.164 format: + followed by country code and subscriber number (max 15 digits total).

International phone validationSMS gatewaysTwo-factor authentication
/
/
Safe
Test String
4 matches
\+\+\+ — escaped character '+'
[…]Character class […]Matches any single character listed in this set
1-91-91-9 — range from '1' to '9'
\d{1,14}digit\d — digit (0–9) — repeated between 1 and 14 times · {1,14} — between 1 and 14 times
Pattern: 15 charsInput: 52 chars
100% client-side · private

Valid Examples

  • +14155552671
  • +442071838750
  • +48123456789
  • +33612345678

Invalid Examples

  • +0123456789
  • 14155552671
  • +1
  • +12345678901234567

Usage & Integration

Validate Phone — E.164 International natively in your backend or frontend without copying regex strings.

Node / Edge

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

validate('phone-e164', '...');

Python

from regexto_validators import validate

validate("phone-e164", "...")

Go

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

valid, err := validators.Validate("phone-e164", "...")

PHP

use RegexTo\Validators\Validator;

Validator::validate('phone-e164', '...');

Rust

use regexto_validators::validate;

let is_valid = validate("phone-e164", "...").unwrap();