I believe almost all of these will work out of the box. The exception is 
the square brackets. The workaround
is to put your regular expression in a variable first. This is mentioned in 
the docs for regexp :

The filter syntax <https://tiddlywiki.com/#Filter%20Run> makes it 
> impossible to directly specify a regular expression that contains square 
> brackets. The solution is to store the expression in a variable 
> <https://tiddlywiki.com/#Variables>. See the examples 
> <https://tiddlywiki.com/#regexp%20Operator%20(Examples)>.
>

Thanks!

On Saturday, August 24, 2019 at 11:16:54 AM UTC-7, Mat wrote:
>
> On https://digitalfortress.tech/tricks/top-15-commonly-used-regex/ I 
> found the following:
>
> 10. HTML Tags
>    
>    - Elements with Attributes <https://www.regexpal.com/95941> 
>    /<\/?[\w\s]*>|<.+[\W]>/
>
> How would this be applied in TW? I.e what to write here:
>
> {{{ [regexp:text[..........]] }}}
>
>
> Side note: This is probably the first thing the TW docs should answer, i.e 
> "How to reformat regexps so they can be used in TW"
>
> Thank you!
>
> <:-)
>
>

-- 
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/f2e31ab7-a6d5-4804-82fb-ba3705e7c9d1%40googlegroups.com.

Reply via email to