Follow Discord
Sweep 30 Oct 2026 · 21:36Z Build v2.1.315 533 read Stable v2.1.308 Latest v2.1.314 Next v2.1.315 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.315 ·

Claude Code's pattern parser now understands more regular expression features

Claude Code's regular expression parser now handles counted repeats, lookahead and named groups, and gives a reason when it refuses a pattern

Under the hood Internal Changes
JSON All of v2.1.315
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
Internal ChangesKind: in v2.1.315,
Internal ChangesSection of the release

Unclear Where Claude Code uses this parser, and so which patterns a user writes are affected, is not stated.

What

Claude Code has its own parser for regular expressions, which are text patterns used to match strings. It was rewritten. It now understands:

  • Counted repeats such as {n,m}
  • Lookahead groups anywhere in the pattern, not only at the start
  • Named groups

Before, it handled only the *, + and ? repeats and a lookahead at the very start of a pattern.

When it cannot handle a pattern, it now gives a specific reason, such as a lookbehind, a back-reference, a flags group, older pattern syntax, or a pattern that is too large.

Why

Patterns that use these features can now be read where they could not before, and a refused pattern now comes with a reason.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhere Claude Code uses this parser, and so which patterns a user writes are affected, is not stated.

See this entry in the whole of v2.1.315 →

Feedback