-
I have a fairly basic The style currently looks like this (very much WIP):
It needs mods because I can't capture and replace the way I want, but that's another story. As it stands, the exceptions appear not to work. In a test file that contains "Set the default login to I tried using NLP for this rule but it's not reliable or accurate enough to achieve the required results. Any ideas on what I might be doing wrong? Thanks a lot. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The exceptions don't work because they include words that will never be matched: when you're trying to apply the exception of You either need to include the preceding word in the pattern or use a negative lookbehind ( |
Beta Was this translation helpful? Give feedback.
This seems to work:
I had to fiddle it about a bit, and without being able to capture groups I had to write extra tests (hint hint 😄 ) but it seems to be doing all the right things.
Thanks again.