Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
Security
#uuid
#guid
#identifier
#id

UUID v4

Matches a UUID version 4 — randomly generated universally unique identifier in the standard 8-4-4-4-12 format.

Database primary keysAPI resource IDsSession tokens
/
/
Safe
Test String
2 matches
[…]{8}Character class […]Matches any single character listed in this set — repeated exactly 8 times · {8} — exactly 8 times
0-90-90-9 — range from '0' to '9'
a-fa-fa-f — range from 'a' to 'f'
--'-' — literal character
[…]{4}Character class […]Matches any single character listed in this set — repeated exactly 4 times · {4} — exactly 4 times
0-90-90-9 — range from '0' to '9'
a-fa-fa-f — range from 'a' to 'f'
--'-' — literal character
44'4' — literal character
[…]{3}Character class […]Matches any single character listed in this set — repeated exactly 3 times · {3} — exactly 3 times
0-90-90-9 — range from '0' to '9'
a-fa-fa-f — range from 'a' to 'f'
--'-' — literal character
[…]Character class […]Matches any single character listed in this set
88'8' — literal character
99'9' — literal character
aa'a' — literal character
bb'b' — literal character
[…]{3}Character class […]Matches any single character listed in this set — repeated exactly 3 times · {3} — exactly 3 times
0-90-90-9 — range from '0' to '9'
a-fa-fa-f — range from 'a' to 'f'
--'-' — literal character
[…]{12}Character class […]Matches any single character listed in this set — repeated exactly 12 times · {12} — exactly 12 times
0-90-90-9 — range from '0' to '9'
a-fa-fa-f — range from 'a' to 'f'
Pattern: 67 charsInput: 73 chars
100% client-side · private

Valid Examples

  • 550e8400-e29b-41d4-a716-446655440000
  • 6ba7b810-9dad-41d1-80b4-00c04fd430c8

Invalid Examples

  • 550e8400-e29b-11d4-a716-446655440000
  • not-a-uuid
  • 123e4567-e89b-12d3-a456

Usage & Integration

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

Node / Edge

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

validate('uuid', '...');

Python

from regexto_validators import validate

validate("uuid", "...")

Go

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

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

PHP

use RegexTo\Validators\Validator;

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

Rust

use regexto_validators::validate;

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