there is no value in ‘case_sensitive’, since there is no test on a letter
Furthermore, could you give a wrong example, and what the correction should be?
The correct way: {VAR07:42}{VAR12:30}/10{VAR07:5D}{VAR07:E2}{VAR12:31}{VAR07:32}{VAR12:32}
It is supposed to be wrong if ‘{’ ‘}’ is missing or VAR is not in caps. Those are the errors I need to check for.
When I use the rule… any text {VAR12:32} is highlighted as an error by the rule I created, but I want the rule to highlight an error when, for example; {VAR12:32} or {var12:32}.
This has been happening with every rule I have tried to create.
I tried to create a rule to check the string “--------------------------------------------------End–”
This is the correct sequence. I want to check 50 “-” before the word End and 2 “-” after.
The rule marks it as wrong when the string is correct and does not mark it at all when it should be wrong, with 49 “-” before End.
To check “--------------------------------------------------End–”, you can use antipatterns. In the pattern, put all incorrect patterns you want to detect, and in the antipattern put the correct version. See: Development Overview | dev.languagetool.org
Because of the repetitions, you will need several rules. Some for detecting more than 50 hyphens or 2 hyphens and some for detecting less than 50 / 2 hyphens.
About repetitions, see Development Overview | dev.languagetool.org