Ciao Mohommad

IT WORKS! Great to have the unicode flag!

... it seems has no effect.


The reason why you thought it had no effect is you tried it on Persian.
Persian code points are in Unicode Plane 0, which means it is already 
supported! You don't need the "u" flag for it.

The "u" flag enables code points in Unicode Planes 1 and above to be 
matched with a simpler single code point rather than having to use complex 
combining codes.

There is a very good explanation here: 
https://dmitripavlutin.com/what-every-javascript-developer-should-know-about-unicode/#35-regular-expression-match

I will update the Regular Expressions Quick Reference for TC to cover how 
to use it as soon as I have time: 
http://commander.tiddlyspot.com/#%24%3A%2Fplugins%2Fkookma%2Fcommander%2Fhelp%2Fuicomp%2Fregular-expression

Best wishes
Josiah

On Thursday, 16 January 2020 12:25:37 UTC+1, Mohammad wrote:
>
> Hi Josiah,
>
> On Thursday, January 16, 2020 at 1:40:15 PM UTC+3:30, TiddlyTweeter wrote:
>>
>> Ciao Mohammad
>>
>> I notice you added "Unicode" support too to SNR! I'll test that tomorrow.
>>
>
> Yes, but it seems has no effect. I search Persian words with and without u 
> flag and both returns the same.
> Please check and see if it is needed! I am not sure what is the default 
> setting of regex in Javascript which is used by Tiddlywiki. 
>
>>
>> TT
>>
>
> --Mohammad 
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9e6f90e6-7691-420d-a946-644dcde60411%40googlegroups.com.

Reply via email to