Regex Cheat Sheet PDF: Regular Expressions from Basics to Lookarounds
Every pattern, modifier and trick.
About this note
The Regular Expressions Master Sheet is a 37-page PDF covering 50+ syntax items with more than 100 examples, including tricky confusion cases.
It follows PCRE / ECMAScript style syntax, notes where Python, JavaScript and Java differ, and includes a real-world pattern library, a one-page cheat sheet and practice problems with solutions.
Who is it for?
- Developers and CSE students
- Students preparing for coding interviews
- Anyone who validates or extracts text
What you will learn
- Use literals, the dot and character classes
- Apply quantifiers: greedy, lazy and possessive
- Use anchors, boundaries, groups and alternation
- Write lookaheads, lookbehinds and backreferences
- Set flags and match Unicode
- Use ready patterns for email, URL, date and more
Contents: 18 chapters
- Introduction to Regular Expressions
- Literals and Basic Matching
- The Dot — Any Character
- Character Classes
- Quantifiers
- Anchors and Boundaries
- Grouping and Capturing
- Alternation
- Escaping Special Characters
- Lookarounds (Zero-Width Assertions)
- Backreferences
- Flags and Modifiers
- Unicode and Codepoint Matching
- Greedy vs Lazy vs Possessive — Deep Dive
- Advanced Constructs
- POSIX Character Classes
- Real-World Pattern Library
- Common Mistakes and How to Fix Them
What is included
- Real-world pattern library
- 10 common mistakes and fixes
- One-page cheat sheet
- Practice problems at three levels with selected solutions
Frequently asked questions
Which regex flavour does the note follow?
PCRE / ECMAScript style syntax, with notes where Python, JavaScript and Java differ.
Does it include ready-made patterns?
Yes. A real-world pattern library covers email, URL, dates, time, IPv4, hex colour and more.
What is the difference between greedy and lazy regex?
A greedy quantifier matches as much as possible, and a lazy one (with a ?) matches as little as possible. For example, <.*> matches a whole line of tags while <.*?> matches one tag at a time.
What are lookarounds in regex?
Lookarounds are zero-width checks for what comes before or after a position without consuming characters. There are positive and negative lookahead and lookbehind.
How do I buy this note?
Pay the amount shown on this page to our official bKash number using Send Money, then fill in the order form with your TrxID, sender number, full name and email. Full steps are in the How to buy section on sendnotes.online.
When will I receive the PDF?
After your payment is verified, a Drive link to your personal PDF is emailed to you within 12–24 hours.
Why is my PDF watermarked?
Your name and email are placed on every page to protect the notes from piracy, so please enter them accurately in the form.
Is the discount still on?
The price on this page already includes the current discount. It is a limited offer, so the price may return to normal later.