It's things like this that seem like magic when you produce them,
Eric.
Thank you, that works perfectly!
cmari

On Apr 11, 10:51 pm, Eric Shulman <[email protected]> wrote:
> > just noticed that my script isn't catching level2 tiddlers if a level1
> > title contains a dollar sign.  Is there something I'm missing or
> > should I just avoid using dollar signs?  I put up examples
>
> MatchTagsPlugin permits use of regular expressions (regexp) within tag
> values, so that you can use things like 'wildcard' matching (e.g.,
> use "foo.*" to match all tags that start with "foo").
>
> The "$" is a special symbol used in regexp syntax to indicate "end of
> text".  In order to treat the $ as a literal character, it needs to be
> preceded by a backslash (e.g., "\$").  Fortunately, because you are
> dynamically constructing the MatchTags expression via code, you can
> apply the escapeRegExp() method to automatically add the backslashes
> as needed:
>
> "[tag[("+level1[g].title.escapeRegExp()+" AND NOT Done)]]"
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to