Regex Cheatsheet - Regular Expression Quick Reference

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

Share
Back to Regex Cheatsheet

End of String $

Anchor

Matches the end of string/line

Pattern

$

Syntax

Explanation

By default, $ matches string end. With the m flag, it also matches line ends.

Examples

world$

Matches string ending with world

Matches: Hello world

\.js$

Matches strings ending with .js

Matches: app.js

Related Tools

More Text Tools