Closed dhowe closed 7 months ago
You can probably use something like (?:(?!}@).)*
. It uses a negative lookahead group (?!
) to prevent matching }@
and then attempts to match any character .
. This is repeating until it arrives at the end of the input or the }@
sequence.
I'm sure this is quite simple, but I have a mode that should start with
@{
and end with}@
, and should accept anything else inside including}
. My tokens are as below. How would I define the pattern for myGate
token ?