How to exclude the lookahead part from colouring #2328
-
The input file "dictionary" has the entry: I'm searching this input file for the term beginning with "fascinating", a space and an opening round bracket like so: The result line is correct: However, the red colour match for this result line is: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, if you use look-ahead. You aren't actually using look-ahead. I didn't test it, but try See also: https://www.regular-expressions.info/lookaround.html |
Beta Was this translation helpful? Give feedback.
Yes, if you use look-ahead. You aren't actually using look-ahead. I didn't test it, but try
^fascinating(?= [(])
.See also: https://www.regular-expressions.info/lookaround.html