Back to LanguageTool Homepage - Privacy - Imprint

Problem with regexp-based rule

I have the following text: xxxxxxxx = yyyyyyyyy. Spell checking is needed only for yyyyyyy part, so I added the rule:
[rule name=“1” id=“2”]
[token regexp=“yes”]^(.*?)=[/token]
[disambig action=“immunize”/]

but regexp, mentioned above is not working. It works fine in Java or Javascript and here I see no effect. When regexp changes, for example, to ^(.*?)abc - everything is ok if text is xxxxxxxxabc yyyyyyyyyy
Could you suggest please?

In this case you’ll have 3 tokens “xxxxxxxx”, “=”, “yyyyyyyy” so you have to build your rule to take to account 3 tokens not one. Something like:

Actually, they may be not separated by space symbol. It may come as following:
xxxx = yyyyy
xxxx= yyyyy

So, should I create several rules for all these scenarios?

Space is only one of the token separators, for most of the languages = will split the tokens as well.
You can observe how tokens are split here: