>
>  It works fine with the shortcut class \w, but if I replace that with 
> [a-zA-Z0-9_] it breaks, when logically those should be the same. 


You cannot have the characters [ and ] inside a literal operand to a filter 
operator.
The workaround is to define the regular expression as a variable and then 
use the variable as the operand.

Pseudo code below.

\define myregexp() ((?:.*\s)|^)([a-zA-Z0-9_]+$)

\define compare-by-last-name-with-character-class()
[<currentTiddler>search-replace:i:regexp<myregexp>,[$2, $1]]
\end

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d1de53a2-5e56-4d28-be4b-88395db2f76cn%40googlegroups.com.

Reply via email to