Regex Cheatsheet

Quick reference to Regular Expression patterns

Character Classes

.Any character (except newline)
\dDigit [0-9]
\DNot digits
\wWord character [a-zA-Z0-9_]
\WNot word characters
\sWhitespace (space, tab, newline)
\SNot whitespace

Regex Cheatsheet - The most complete Regular Expression reference

Cheatsheet Regular Expression (Regex) is the most complete and easy to understand in Vietnamese. Includes all character classes (\\d, \\w, \\s), anchors (^, $, \\b), quantifiers (*, +, ?, {n,m}), groups and lookarounds. Comes with tested common regex patterns for email, phone, URL, and password. Copy patterns with just one click. Bookmark this page for quick lookup every time you write a regex.

Outstanding features

Full Character Classes: \\d, \\D, \\w, \\W, \\s, \\S and explanation
Anchors and Boundaries: ^, $, \\b, \\B with specific examples
Quantifiers: *, +, ?, {n}, {n,}, {n,m} and greedy vs lazy
Groups: capturing (), non-capturing (?:), named groups
Lookahead and Lookbehind: (?=), (?!), (?<=), (?<!)
Common patterns: Email, Phone VN, URL, Hex color, Date, Password
Quick search in all patterns
Copy pattern with one click
Explained in easy-to-understand Vietnamese
Compatible with JavaScript, Python, PHP, Java

Why do we need Regex Cheatsheet?

Regular Expression is a powerful tool for text processing, but its syntax is difficult to remember. Even experienced developers often have to look up. This cheatsheet helps you: (1) Quickly look up syntax without Google; (2) Copy common tested patterns; (3) Understand the meaning of each special character; (4) Learn regex through practical examples. Instead of spending 10 minutes searching and reading documentation, you can find the needed pattern in seconds.

Benefits when used

  • Look up regex syntax quickly
  • Copy patterns đã được test sẵn
  • Save time writing regex from scratch
  • Learn regex through practical examples
  • Avoid common syntax errors
  • Supports many programming languages ​​

Instructions for using Regex Cheatsheet

  1. 1Use the search box to quickly find the pattern or character you want to look up
  2. 2Or click on the tabs to view by category: Characters, Anchors, Quantifiers, Groups, Common
  3. 3Read the description to understand the meaning of the
  4. 4pattern Click the Copy button to copy the pattern to the clipboard
  5. 5Paste into your code and adjust as needed

Cooperate immediately with Mavis Digital

We not only design websites, but also help businesses build strong digital brands. Providing comprehensive website design services from design to SEO optimization. Please contact Mavis Digital immediately to create breakthrough, effective and sustainable technology solutions for your business in Ho Chi Minh.

Tools Developer Tools related