Re: regular expression and speech dic


Mr. Wong Chi Wai, William <cwwong.pro@...>
 

Thanks.
I adopted your rule and the following cannot match:

你的lv?
我的lv是12
我maxlv了


Brian Vogel 於 24/8/2018 21:02 寫道:

William,

          First, try the regular expression for the match:     (lv\s*)([0-9]+)
with the same substitution:  level \2

          If that does not work, then please provide at least 5 examples of strings that should be matched, including ones with Chinese characters if those are to be matched, and I'll have to figure out the refinements.
--

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 nvda@nvda.groups.io to automatically receive all group messages.