Escaped \+
not working when used along with |
?
#8336
Answered
by
kirawi
tapyu
asked this question in
Troubleshooting
-
SummaryI apologize if that is a typo on my side, but it seems that the scaped Reproduction StepsConsider the following text and the following It should match On the other hand, for some reason, we can get this done if we swap the regex matches: Helix log~/.cache/helix/helix.log
PlatformLinux Terminal Emulatorkitty 0.21.2 created by Kovid Goyal Helix Versionhelix 23.05 (7f5940b) |
Beta Was this translation helpful? Give feedback.
Answered by
kirawi
Sep 19, 2023
Replies: 1 comment 4 replies
-
I'm pretty sure it's because C gets matched before C++ in the first example. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
tapyu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm pretty sure it's because C gets matched before C++ in the first example.
C\b|C\+\+
would work for example.