According to the regexp operator tiddler at tiddlywiki.com: The filter syntax <http://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 > <http://tiddlywiki.com/#Variables>. See the examples > <http://tiddlywiki.com/#regexp%20Operator%20%28Examples%29>.
In the examples: <$set name="digit-pattern" value="[0-9]{2}"> > <<list-links "[regexp:title<digit-pattern>]">> > </$set> > > HTH Mark On Saturday, August 26, 2017 at 1:30:07 PM UTC-7, @TiddlyTweeter wrote: > > Ciao Mark S. & all ... > > I have an issue using character sets in square brackets. A case came up on > the #buddha stuff, covered earlier in this thread, I overlooked. > Occasionally I'd include a web address in a Tweet ... > > ... https://steamradio.com/buddha.html#BuddhaLink > > Under the current regex "#\w+\b", it would capture "#BuddhaLink". It > shouldn't as its NOT a Twitter hashtag, its just part of an address. There > are several regex solutions. An economical one looks to me like > "[^a-z](#\w+\b)". > > In this case the capture group is what needs returning, not the whole > match. > > I have an issue ... I simply c*an't figure out how to get the character > set in square brackets into the regex match formul*a. > > Any help much appreciated > 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/f7ca4101-e0d8-48d8-96c9-fcd601ff13f7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.