Collection of commonly used regular expression patterns with examples and explanations
Matches whole numbers, including negative numbers
Matches decimal numbers with optional negative sign
Matches currency format with optional thousands separators
Matches letters and numbers only
Matches usernames starting with a letter, followed by letters, numbers, underscores or hyphens
Matches dates in YYYY-MM-DD format
Matches time in 24-hour format (HH:MM)
Matches most common email address formats
Matches email addresses with stricter domain validation
Matches HTTP and HTTPS URLs
Matches URLs with strict domain and path validation
Matches international phone numbers with country code
Matches Chinese mobile phone numbers with optional country code
Matches HTML tags with or without attributes
Matches HTML attributes with their values
Matches passwords with at least 8 characters, including letters, numbers and special characters
Matches passwords requiring uppercase, lowercase, numbers and special characters