use proper version of CTRE + use multiline mode with it#14
use proper version of CTRE + use multiline mode with it#14hanickadot wants to merge 1 commit intorust-leipzig:masterfrom
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