-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
regex matches_string result error. #24159
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
Comments
Connected to Huly®: V_0.6-22548 |
Can you please elaborate what do you want achieve with the query |
i want build api request path regex the javascript same regex match result is true |
If I'm correct you want match all cases of: example: import regex
q := r'^/api/(\w+/)+user$'
mut re := regex.regex_opt(q) or { panic(err) }
println(re.get_query())
txt := '/api/V1/user'
res := re.matches_string(txt)
println(res) return |
the regex is dynamic |
Sorry but I'm not understanding what exactly you want match, what do you mean for dynamic? |
the source code
you can run it with command |
I uploaded the sourcecode, |
I see that you changed the regex query, good. |
thank you very much. i am just see the pcre module, it's not frendly to catch group. |
Describe the bug
left value: result = false
right value: true
V panic: Assertion failed...
Reproduction Steps
none
Expected Behavior
expexct assert test pass
Current Behavior
assert test failed
Possible Solution
No response
Additional Information/Context
No response
V version
0.4.10 54c10ec
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: