-
Notifications
You must be signed in to change notification settings - Fork 312
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
Questions #12
Comments
|
✨ Thanks very much for the clarification! ✨ https://github.com/kkos/oniguruma/wiki/Characters-That-Must-Be-Escaped-to-Be-Used-Literally Did I miss anything? And could you keep this open just in case I have further questions? :)) |
Thank you. |
Isn't |
\w is equivalent to [0-9A-Z_a-z] if you are using ASCII encoding. |
So in UTF-8 encoding, |
Yes. And 654 is the number of code ranges. |
Thanks for your replies. They really helped me a lot! So similarly, in UTF-8 encoding, Do you mind if I help edit the doc of RE? It would just be some small refinements to make it easier to understand. |
I do not know the difference of the speed�. I have add you as collaborator. |
And please edit develop branch not master branch. |
👌 😉 |
About |
onig_search() has search-range argument (start, range) and string argument (str, end). \G mean start position of search-range. |
Tried digging around the definition of I was trying to expand on/clarify some definitions in doc/RE, one of them is of
Does it look correct to you? |
Yes. You are right. |
I was wondering, |
Thank you for improved document. POSIX bracket is poor than Unicode property. |
👌 No problem, and I can get to know more about how Oniguruma processes regexps along the way. 😌 So are you planning to deprecate POSIX brackets? New question: in doc/RE,
What is a multiplex definition name? Mind if I email you with the questions instead? |
I will remove POSIX bracket from version 7.0 if it is removed in Perl6. You can assign one name to the more than two groups. |
Hi @kkos, I want to create a wiki page for this, just to make sure I get right. :)
Outside character classes, characters that must be escaped to be used literally are:
^$.?*+()[\|
In character classes, characters that must be escaped to be used literally are:
^-]\
(please correct me if I get it wrong)^
and-
can get away with this by "clever placement."What really confuses me is
[
and]
in character classes (though I think they both should be escaped for clarity):[
must be escaped in classes and unescaped]
raises warnings but is allowed.[
can be used unescaped in classes but]
can't. 😂]
can be used literally by placing it at the start of a class. In Oniguruma, it can't, right?The text was updated successfully, but these errors were encountered: