Options instead of word boundary #262
yonderblue
started this conversation in
General
Replies: 1 comment 1 reply
-
@alecthomas What I'd really like to do is match at a unicode word boundary, but I am not aware of anyway to do that without lookahead. Considering the SQL example in here uses word boundary in the lexer, I can't be too far off in my quest? :D Maybe a pluggable regex impl feature? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is a small runnable example. Changing the OR pattern to
(?i)or\b
solves the issue, but is another form of lookahead that relies on the definition of\w
. What if I wanted-
to also be considered in\w
? Is there a difference approach?Beta Was this translation helpful? Give feedback.
All reactions