Numbers & Finance · In-Browser Regular Expression Lab
E.164 Phone Regex — International ITU-T Compliant Phone Format
Matches international standard phone numbers starting with a plus sign and 7 to 15 digits.
Flags:
//none
Match Found
Load Sample:
Match Inspection & Details1 match
Match #1:+14155552671
Test Samples Verification Matrix
Expected Valid Samples (Should Match)
+14155552671 Pass
+442071838750 Pass
+971501234567 Pass
Expected Invalid Samples (Must Reject)
0014155552671 Rejected (Pass)
+0123456 Rejected (Pass)
14155552671 Rejected (Pass)
+1415555267199999 Rejected (Pass)
Code Implementation Generator
// JavaScript / TypeScript (ES6+)
const pattern = /^\+[1-9]\d{1,14}$/;
const text = "+14155552671";
const isMatch = pattern.test(text);
console.log("Is Match:", isMatch);
if (isMatch) {
const matches = text.match(pattern);
console.log("Matches:", matches);
}Regular Expression Token Breakdown
Follows ITU-T E.164 standard: begins with +, country code (1-9), followed by up to 14 digits. Each component of the regular expression serves a distinct syntactical purpose as mapped below:
| Token Pattern | Name / Component | Function & Rule |
|---|---|---|
| ^\+ | Leading Plus | Literal plus symbol indicating international prefix. |
| [1-9] | Country Code start | First digit cannot be zero. |
| \d{1,14}$ | Subscriber Number | 1 to 14 subsequent digits. |
Frequently Asked Questions
What is E.164 standard?
Related Regular Expressions
Browse All 40 PatternsNumbers & Finance
US Phone Number Format
Flexible US phone number validator matching standard parentheses, hyphens, and spaces.
/^(?:\+?1\s*(?:[.-]\s*)?)?(?:\(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*\)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})$/Test regex
Numbers & Finance
IBAN Bank Account Matcher
Validates canonical IBAN structure: 2-letter country code, 2-digit checksum, and up to 30 alphanumeric characters.
/^[A-Z]{2}[0-9]{2}[A-Z0-9]{4}[0-9]{7}([A-Z0-9]?){0,16}$/Test regex
Numbers & Finance
Credit Card (Visa & Mastercard)
Detects Visa and Mastercard credit card format with optional space or hyphen delimiters.
/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|2(?:22[1-9]|2[3-9][0-9]|[3-6][0-9]{2}|7[01][0-9]|720)[0-9]{12})$/Test regex