Hi Mat,

You seem to want to look at something like "[[Foo]] Bar Baz" as a whole 
string. I'm not sure how to even set that up experimentally, because TW 
constantly wants to turn it into a title list, with each item viewed as a 
title. As far as a regular expression that just finds "Foo" (assuming a 
standard title list) then regexp[^Foo$] should work.

-- Mark

On Wednesday, August 8, 2018 at 3:31:00 AM UTC-7, Mat wrote:
>
> What is the regexp for matching a tag in the tags field. Should bea basic 
> use case... but I just don't nail it. 
>
> (The @TiddlyTweeter is because I recall Josiah a.k.a TiddlyTweeter has 
> mentioned he's good at regexps but I of course welcome help from anyone.)
>
> So, for the tag "Foo", the regexp should trigger on all of the following 
> tags field values (i.e each row is a separate tags field)
>
> Foo Bar Baz
>
> Bar Foo Baz
>
> Bar Baz Foo
>
> [[Foo]] Bar Baz
>
>
> I.e Foo may or may not be surrounded by space characters - or by double 
> brackets on both sides.
>
> But it should not trigger when Foo is surrounded by other characters, or 
> merely double brackets on one side, for example:
>
> NotFoo Bar Baz
>
> Not [[Foo Bar]]
>
> Not [[Foo
>
>
> ...unless, of course, the searched for pattern *does* have one or several 
> space characters in it, in which case the double brackets are required. E.g 
> for *Foo Foo* this is OK:
>
> Bar [[Foo Foo]] Baz
>
> ...but the following is not because the seached for string had a space in 
> it which implies there must also be brackets around it 
>
> Bar Foo Foo Baz
>
>
> 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 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/9efe00d1-2990-497c-b5c3-12f9fc51d207%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to