Re: regular expression and speech dic



           If my presumptions in the last message are correct, give the following a try for the regular expression:


           and the following for the substitution:
                                  \1 \2 level \4

Note 1:   The above is only for the style you showed that includes Chinese characters with an optional "max" or "min" and "lv".    It will not capture a simple lv followed by numbers.  You should keep the earlier regular expression and substitution for those instances.

Note 2:  The above regular expression presumes Python regex syntax.  Since I know that NVDA add-ons are coded in Python I'm presuming this is the regex syntax NVDA would use.  If not, then I would need to know which version of regex syntax is being used.

Brian - Windows 10 Home, 64-Bit, Version 1803, Build 17134  

    A little kindness from person to person is better than a vast love for all humankind.

           ~ Richard Dehmel



Join to automatically receive all group messages.