RegexBench

← Library

UUID

Standard 8-4-4-4-12 hex UUID layout.

Pattern

/\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\b/

Sample text

id=550e8400-e29b-41d4-a716-446655440000
bad=550e8400-e29b-41d4-a716
Test this pattern in the editor

Related patterns