-
|
I'm trying to create a style to match on the incorrect use of "lower left" and "lower-right" and so on. It's almost working, but I can't match the following string: "Click Save at the lower-left." I don't seem to be able to catch any punctuation in that position: "Click Save at the lower left, and then click OK." These are the rules that I have so far: I've tried a few different variations but can't get it to work. I can match the strings ok but not the punctuation. In summary, I need to replace "upper left" with "upper-left", and ensure that it's not followed by punctuation. I tried this in regex101.com and it works as expected:
I was going to try testing in Vale Studio but it appears to be not working/unavailable. Thanks for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
I feel like you are looking for https://vale.sh/docs/checks/substitution The automatic \b added by default are going in the way with your advanced regex |
Beta Was this translation helpful? Give feedback.
I feel like you are looking for
nonword: truesettinghttps://vale.sh/docs/checks/substitution
The automatic \b added by default are going in the way with your advanced regex