Check if a string is a valid UUID (v1-v7).
Code
General[[ "$uuid" =~ ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-7][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$ ]] && echo "true" || echo "false"Parameters
The UUID to validate
Server
More Bash Snippets
Check Password Strength
Check if a password meets strength requirements (8+ chars, uppercase, lowercase, number, special).
Is Alpha Only
Check if a string contains only alphabetic characters.
Is Alphanumeric
Check if a string contains only letters and numbers.
Is Empty
Check if a value is empty.
Is Numeric
Check if a string represents a valid number.
Validate Email
Check if a string is a valid email address.