Regex Cheatsheet - Regular Expression Quick Reference

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

Share
Back to Regex Cheatsheet

Base64 Pattern

Common Pattern

Match Base64 encoded strings

Pattern

^[A-Za-z0-9+/]+={0,2}$

Syntax

Explanation

Base64 uses A-Z, a-z, 0-9, +, / with 0-2 = padding at end.

Examples

SGVsbG8gV29ybGQ=

Base64 encoded string

Matches: SGVsbG8gV29ybGQ=

Related Patterns

Related Tools

More Text Tools