本页面有中文版。
Cette page est disponible en français.
Esta página está disponible en español.

/blog/ · field notes from the hunt

Regex guides on the Regex Hunter Blog

Regex guides from the Regex Hunter blog: anchors, character classes, groups, lookarounds and flags explained step by step, with live examples to try.

Showing 7–8 of 8 posts · 16 total

/(.)\1/

booklettercoffee·catdoglemon

Guides

Regex backreferences: patterns that remember what they matched

A backreference like \1 matches the exact text a group already captured. Here's how they work, how to find doubled letters, repeated words and palindromes, and the one place they don't work.

Regex Hunter logoRegex Hunter

Today’s board is live

Read the trick. Now go hunt.

Match every monster, spare every innocent — in as few characters as you can.