JavaScript Regex
Examples, groups, extraction, match, replace, and flags.
Learn JavaScript Regex βStart with the definition, learn through practical JavaScript and number examples, then reinforce each concept with exercises, the online tester, and 24 interactive levels.
Choose a focused path or use the complete library below.
Examples, groups, extraction, match, replace, and flags.
Learn JavaScript Regex β30 practice problems with solutions from beginner to advanced.
Practice Regex βDigits, integers, signs, decimals, ranges, and formatted values.
Learn number Regex βTest patterns online and inspect matches and capture groups.
Open Regex Tester βLearn what regular expressions are, what they are used for, and how to read basic patterns with practical examples.
Read guide βA beginner-friendly regex path covering literals, character classes, quantifiers, anchors, and practice.
Read guide βPractical JavaScript regex guide using literals, RegExp, test(), match(), replace(), and common flags.
Read guide βPractical Python regex guide using the re module, raw strings, groups, extraction, and replacement.
Read guide βLearn a practical email Regex, understand each part, and see why complete email validation is more complicated.
Read guide βRegex for the common Brazilian CPF format, plus the important difference between formatting and check-digit validation.
Read guide βRegex for the common Brazilian CNPJ format with an explanation of formatting versus check-digit validity.
Read guide βLearn phone Regex patterns, optional formatting, international caveats, and why requirements should come first.
Read guide βLearn a practical URL Regex for HTTP/HTTPS and understand protocols, domains, paths, and parsing limits.
Read guide βLearn a basic IPv4 Regex and why four numeric groups are not enough to guarantee a valid address.
Read guide βRegex examples for date formats, plus why matching DD/MM/YYYY does not guarantee a real calendar date.
Read guide βPractical Regex examples for digits, signed integers, decimals, and why numeric conversion still matters.
Read guide βRegex patterns for letters only, including accented characters and Unicode considerations.
Read guide βUse Regex to filter log levels and extract dates, IDs, and useful fields from application logs.
Read guide βPractical Regex examples for digits, words, email, phone, dates, URLs, files, and logs.
Read guide βPractice Regex with progressive exercises and learn to use false positives and false negatives as feedback.
Read guide β