Skip to content

Wrong match length? #69

Open
Open
@yoyopoleg

Description

@yoyopoleg

Hi,
I ran into an issue in the following scenario:
pattern = re_compile("{\\w+}");
match_pos = re_matchp(pattern, "{{FW}_TEST", &match_length);

The result is that match_pos==1 (correct), but match_length==5 (incorrect).
I was expecting to get match_pos==0 and match_length==5 --OR-- match_pos=1 and match_length==4.
Tnx
Yair

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions