Skip to content
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

Matching result not same as glibc regex #74

Open
Hengliy opened this issue Apr 16, 2020 · 0 comments
Open

Matching result not same as glibc regex #74

Hengliy opened this issue Apr 16, 2020 · 0 comments

Comments

@Hengliy
Copy link

Hengliy commented Apr 16, 2020

Hi, I test tre-regex comparted with glibc-regex and have some discover:

text = "a"
pattern = "(.?).?\1"

glibc-regex:

matching: "a"
pmatch[0].rm_so = 0
pmatch[0].rm_eo = 1

matching: ""
pmatch[1].rm_so = 0
pmatch[1].rm_eo = 0

tre-regex:

matching: ""
pmatch[0].rm_so = 0
pmatch[0].rm_eo = 0

matching: ""
pmatch[1].rm_so = 0
pmatch[1].rm_eo = 0

Is this a bug?

Thanks.

@Hengliy Hengliy changed the title Matchnig result not same as glibc Matchnig result not same as glibc regex Apr 17, 2020
@Hengliy Hengliy changed the title Matchnig result not same as glibc regex Matching result not same as glibc regex Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant