Mat to convert that ... 1. remove the leading and trailing *"/"* slashes. Those are for using regex in raw form in Javascript we don't use in TW operators, so: <\/?[\w\s]*>|<.+[\W]>
2. I see it uses "alternation". Not a bad idea to wrap it in brackets so: (<\/?[\w\s]*>|<.+[\W]>) 3. put it in a variable as it contains [...] brackets. (You know how to do that :-) 4. reference the variable in the regex [regexp:text[<regexvariable>]] Did it work? :-) TT On Saturday, 24 August 2019 20:16:54 UTC+2, 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/d875adcf-c6d3-4ed6-8596-e55845a319ae%40googlegroups.com.

