-
Notifications
You must be signed in to change notification settings - Fork 31
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
use proper version of CTRE + use multiline mode with it #14
base: master
Are you sure you want to change the base?
Conversation
… ago), also use multiline range as default mode is single line
I notice someone added CTRE here, but they selected |
Also meanwhile CTRE started to support switching modes (?i) and word boundaries. Case insensitive mode still only ASCII based (there is work done in full Unicode 14 support direction, but not there yet) |
What does multiline range do for CTRE? Usually multi-line mode makes |
multiline mode in CTRE (and also in PCRE) won't allow to match a newline for
But with multiline it has expected results:
|
Hmmm, for PCRE, "multiline" mode doesn't impact whether
In order to make PCRE match
Most regex engines I'm aware of don't have "dot all" mode enabled by default. That is, by default, But in any case, it looks like my question was answered. I had assumed CTRE's "multiline" mode corresponded to the same thing in other regex engines, but it sounds like it might be a little different. |
Good point, maybe I should implement dot_all mode too. Thanks! |
Hijacking this thread. .{0,2}(Tom|Sawyer|Huckleberry|Finn) |
use latest version of CTRE (it switched from master to main long time ago), also use multiline range as default mode is single line