Consume any token except #1828
jonestristand
started this conversation in
General
Replies: 1 comment 10 replies
-
@jonestristand You can use positive lookahead in your regex to lex up to a particular character/string. Something like |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a method, or at least a canonical way, to consume any token EXCEPT a particular token (e.g. in a string, consume everything until hitting an end quote)?
Beta Was this translation helpful? Give feedback.
All reactions