Just for clarity:

Am Sonntag, 3. November 2013 16:10:40 UTC+1 schrieb Bob Flandard:
>
> it has a function (below) that looks like it's pre-processing the keywords 
> string to escape the regular expression characters that cause it a problem 
> (in my case * and /)
>
>         function getKeywordsCSS(str)
>         {
>             return '\\b([a-z_]|)' + str.replace(/ /g, 
> '(?=:)\\b|\\b([a-z_\\*]|\\*|)') + '(?=:)\\b';
>         }; 
>

It searches for Blanks (/ /) in the whole string (g-lobally) and replaces 
each blank (better would have been / +/g for each blank-sequence) with the 
regular expression '(?=:)\b|\b([a-z_\*]|\*|)'. Additionall it puts 
something in front and behind.

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to