One more comment:

I am not good at regexp, but I think snr should follow what is 
reule/standard in Tiddlywiki, so
I think we need to change the code to act as the current regexp operator 
(https://tiddlywiki.com/#regexp%20Operator)

So, please let me know, if snr has any conflict with regexp or pass TW red 
lines!

--Mohammad

On Wednesday, March 6, 2019 at 5:10:19 PM UTC+3:30, @TiddlyTweeter wrote:
>
> Mohammad & all interested
>
> I have done a lot of testing of "s-n-r2". It is very good!
>
>
> *DIFFERENCES FROM NORMAL REGEX*
>
> It differs from normal regular expressions in that TiddlyWiki needs to 
> guard itself from eating itself. 
>
>  
>
> *It does this by needing the regex to be wrapped in Quote Marks*.
>
> The type of quote marks differ according to the use-case.
>
> IF a tiddler only contains * ' * then wrapping in * " * will work. And 
> vice-versa.
>
>
> IF a tiddler contains both * ' *  and * " * quotes then the match string 
> is easiest enabled by wrapping it: * """regex""" *.
>
>
>
> *LIMITS*
>
> 1 - I have found NO WAY to safely make changes in a tiddler that contains 
> the string * """ *. Those 3 double quotes are likely protecting TW from 
> itself but the regex can't currently cope with them. 
>
>  
>
> *That rules out safe s-n-r via regex in many macros.*
>
>  
>
> 2 -  SUBSTITUTION. Mohammad and I found out that there is currently no 
> easy way to get Control Codes into output replaces. This is problematic as, 
> for instance, we need to replace * <pre> * with * \n```\n *. BUT in 
> replace the "\n" is only treated as a literal.
>
>
> Best wishes
> Josiah
>
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/585dc0d4-16a7-4b42-ae88-80e949b54549%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to