Skip to content

In UTF mode, Nested lookbehind with an optional quantifier: unexpected no match #960

Description

@YuFuSweetie

Nested lookbehind with an optional quantifier: unexpected no match

Environment

  • PCRE2 10.47 (2025-10-21)
  • Windows 11, 8-bit library, UTF+UCP enabled

Pattern

/(?<=(?<=A).?)\d/

Subject

A12

Result

Only 1 matches; 2 does not. I expected 2 to match as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions