-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong match length? #69
Comments
I tried the code from here: https://github.com/marler8997/tiny-regex-c, no luck :/ |
I've added a test for kokke#69. In order to do this I enhanced the new test3.c file to support patterns that match in the middle of text.
@yoyopoleg sorry I didn't get notified about your comment 26 days ago, but I just happened to be looking through these issues today. All my changes are on the on my branch I get a match position of |
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
The text was updated successfully, but these errors were encountered: