Regex Cheatsheet - Regular Expression Quick Reference

Quick reference for regular expression patterns. Character classes, quantifiers, anchors, and common patterns.

Share
Back to Regex Cheatsheet

Start of String ^

Anchor

Matches the beginning of string/line

Pattern

^

Syntax

Explanation

By default, ^ matches string start. With the m flag (multiline), it also matches line starts.

Examples

^Hello

Matches string starting with Hello

Matches: Hello world

^\d+

Matches lines starting with digits

Matches: 123abc

Related Tools

More Text Tools