kokke / kokke/tiny-regex-c

Does not work for GUUID validation

Open
#27 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
1.5k
Forks
212
PR merge metrics
No merged PRs in 30d

Description

Hello, it seems that it does not work for GUUID validation

```
const char* pattern = "^([0-9A-Fa-f]{8}[-][0-9A-Fa-f]{4}[-][0-9A-Fa-f]{4}[-][0-9A-Fa-f]{4}[-][0-9A-Fa-f]{12})$";
int m = re_match(pattern, "CA761232-ED42-11CE-BACD-00AA0057B223");
```

This works with online tools https://regex101.com/r/hD8sJ8/3

Thank you

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the re_match entry point in the tiny-regex-c code and reproduce the supplied UUID pattern and input. Trace why the expression does not match as expected, then verify the behavior with a regression test covering this example. Done means the reported UUID is accepted without breaking existing regex behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.