# Regex Cheat Sheet

A searchable, localized cheat sheet for regular expression syntax — character classes, anchors, quantifiers, groups & references, lookarounds, escape sequences, and flags — with a built-in quick tester

> Canonical page: https://elysiatools.com/en/tools/regex-cheat-sheet

- **Category:** Development

- **Keywords:** regex, regular expression, cheat sheet, reference, syntax, metacharacter, quantifier, anchor, lookaround, flags, quick test

## Overview

The Regex Cheat Sheet is an interactive, searchable reference tool designed to help developers and data analysts quickly look up and test regular expression syntax, including character classes, anchors, quantifiers, lookarounds, and flags.

## Inputs

- **Language** (select)

## When to use

- When you need to quickly recall specific regex syntax like lookarounds, non-capturing groups, or escape sequences.
- When you want to test a regular expression against sample text in real-time without leaving your documentation.
- When you need a localized regex reference guide in languages like English, Spanish, Chinese, or French.

## How it works

- Select your preferred language from the options to display the localized cheat sheet.
- Use the search bar or browse categories like character classes, anchors, and quantifiers to find the syntax you need.
- Input your regular expression and test string into the built-in quick tester to verify matches instantly.

## Use cases

- Debugging complex validation patterns for email addresses, phone numbers, or URLs.
- Learning regular expression syntax step-by-step with localized explanations and interactive testing.
- Quick reference lookup during software development, data parsing, or text processing tasks.

## Frequently asked questions

### What regex features does this cheat sheet cover?

It covers character classes, anchors, quantifiers, groups, references, lookarounds, escape sequences, and flags.

### Can I test my regular expressions directly on this page?

Yes, the tool includes a built-in quick tester to validate your regex patterns against sample text.

### What languages is the cheat sheet available in?

It supports English, Chinese, Spanish, Russian, French, German, and Portuguese.

### Do I need to install anything to use the tester?

No, the tester runs entirely in your web browser without any installation.

### How do I search for a specific regex token?

Use the search input on the cheat sheet to instantly filter tokens by name, syntax, or description.

## Related tools

- [Regex Railroad Diagram Visualizer](https://elysiatools.com/en/tools/regex-railroad-diagram-visualizer): Render a regular expression as an SVG railroad (syntax) diagram showing literals, groups, alternations, and repetition, with capture-group numbering and flag explanations
- [Regex Benchmark](https://elysiatools.com/en/tools/regex-benchmark): Compare performance of different regex patterns, identify bottlenecks, and detect degenerate cases
- [Regex Debugger](https://elysiatools.com/en/tools/regex-debugger): Step through how a regular expression matches a string position by position: visualize match attempts, partial successes, backtracks, and captures — a learning tool for understanding regex behavior, not just the final result
- [Regex Tester](https://elysiatools.com/en/tools/regex-tester): Test regular expressions against text
- [Regex Replace Previewer](https://elysiatools.com/en/tools/regex-replace-previewer): Preview regex replacements in real-time with detailed diff highlights and statistics
- [ReDoS (Regular Expression Denial of Service) Scanner](https://elysiatools.com/en/tools/redos-regex-scanner): Scan one or more regex patterns for catastrophic backtracking risk, simulate evil inputs, and suggest safer rewrites
- [Text File Replacer](https://elysiatools.com/en/tools/text-file-replacer): Find and replace text in files with support for regex, multiple patterns, and backup creation
- [API Breaking Changes Detector & Migration Planner](https://elysiatools.com/en/tools/api-breaking-changes-detector-migration-planner): Compare two OpenAPI 3.x schemas, identify breaking changes, grade client impact, and suggest migration or compatibility strategies

## Samples

- [Regex Replace Samples](https://elysiatools.com/en/samples/regex-replace): Collection of common and useful regex replacement patterns for text transformation and data cleaning
- [Common Regex Patterns](https://elysiatools.com/en/samples/regex-samples): Commonly used regular expression patterns for validation and matching
- [Regex Pattern Alternatives](https://elysiatools.com/en/samples/regex-alternatives): Multiple ways to write the same regex pattern with different trade-offs in readability, performance, and accuracy
- [Regex Named Capture Groups](https://elysiatools.com/en/samples/regex-named-groups): Collection of regex patterns using named capture groups for extracting structured data from text. Named groups make patterns more readable and maintainable by assigning meaningful names to captured portions.

## Related content

- [Regex Testing, Visualization, and Pattern Debugging Tools](https://elysiatools.com/en/hubs/regex-utility): Compare regex testers, explainers, cheat sheets, visualizers, linters, performance scanners, and replacement preview tools in one hub for safer pattern design and debugging workflows.
