Josiah!
 I appreciate if you put these comments in few tiddlers to added as help to 
SNR2.

--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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/3430080d-4b2e-47d4-ae33-b33d69a08e18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to