Skip to content

Dynamic cap count #27

@IngwiePhoenix

Description

@IngwiePhoenix

Well, I want to use SLRE in my project, which consists of just a tiny scripting language and tiny extensions. My goal is to use SLRE to introduce RegEx support to it. The problem is that, in the nature of a scripting language, the user might supply multiple capture groups.

That is why I want to ask: How can I best count the capture groups in the buffe,r and then perform matching? I could just go through the buffer and look for (s, but maybe there is an easier method?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions