Regex Cheatsheet - Regular Expression Quick Reference

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

Share
Back to Regex Cheatsheet

Non-Word Boundary \B

Anchor

Matches position that is not a word boundary

Pattern

\B

Syntax

Explanation

\B is the opposite of \b, matches between two word chars or two non-word chars.

Examples

\Bcat

Matches "cat" not at word start (e.g. in "category")

Matches: cat in category

Related Patterns

Related Tools

More Text Tools