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/8125baac-dfcb-4f22-82d4-333590a5be70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to