Regex Cheatsheet - Regular Expression Quick Reference

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

Share
Back to Regex Cheatsheet

Newline \n

Escape

Matches newline character (LF, ASCII 10)

Pattern

\n

Examples

line1\nline2

Match two lines separated by newline

Matches: line1 line2

Related Tools

More Text Tools