Awesome, thanks.  I had tried that but messed up the search-replace syntax, 
I didn't realize the angle brackets would replace the square brackets and 
was using both:

[<currentTiddler>search-replace:i:regexp[<myregexp>],[$2, $1]]

Much appreciated.
On Saturday, August 7, 2021 at 3:42:06 AM UTC-4 [email protected] wrote:

>  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/482ec638-e4fb-4e6f-a93c-e71924cbea04n%40googlegroups.com.

Reply via email to