Regex Anchors Tester (^, $, \b, \B)

Regex anchors are zero-width assertions — they match positions, not characters. ^ = start of line. $ = end of line. \b = word boundary. The behavior changes with the /m (multiline) flag. This tester visualizes every anchor position in your input.

How to use the Regex Anchors Tester (^, $, \b, \B)

Pick an anchor. Toggle multiline mode. The output highlights every position where the anchor matches.