Skip to content

(?!^) is not handled correctly by Regex framework #815

Open
@DJBen

Description

@DJBen

Description

"dispatchWithName".matches(of: /(?!^)(With(?!No)|For|In|At|To)(?=[A-Z])/)

returns 0 matches, but Regexr shows there should be one match

Reproduction

"dispatchWithName".matches(of: /(?!^)(With(?!No)|For|In|At|To)(?=[A-Z])/)

returns 0 matches

Expected behavior

"dispatchWithName".matches(of: /(?!^)(With(?!No)|For|In|At|To)(?=[A-Z])/)

should return 1 match "With"

Environment

Verified Xcode 16.0 is fine; appeared in Xcode 16.3

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions