My apologies Diego, your solution solves *both* use cases, I didn't check properly.
Thank you again! -Hubert On Monday, 2 December 2019 16:03:52 UTC, Hubert wrote: > > Thank you Diego. > > A follow up question, is it possible to detect if a string is only > whitespace? As in, " "? Such "string" would consist of no characters but > at the same time it would not evaluate to nothing, so the following reveal > syntax would not detect it: > > <$reveal state="!!input" type="nomatch" text=""/> > > I feel this could be accomplished with regex, but I'm no expert. What I'm > trying to do is foolproof my text inputs against accidental empty strings > because the consequences are not elegant so to speak :) > > Thank you again, > Hubert > > On Monday, 2 December 2019 15:43:05 UTC, Diego Mesa wrote: >> >> Hey Hubert, >> >> Unless Im missunderstanding something, you can use the split operator and >> the join operator to accomplish this: >> >> <$list filter="[[a black cat hides under a chair]split[ ]join[]]"> >> <<currentTiddler>> >> </$list> >> >> returns: ablackcathidesunderachair >> >> >> On Monday, December 2, 2019 at 9:18:33 AM UTC-6, Hubert wrote: >>> >>> Hello, >>> >>> I'm looking for something beyond trim, a filter operator that would >>> remove *all *spaces from an input (not just trailing spaces), like here: >>> >>> <$list filter="[[a black cat hides under a chair]whitespaceremove[]]"> >>> <<currentTiddler>> >>> </$list> >>> >>> Where the output would ideally be: *ablackcathidesunderachair* >>> >>> Is this possible? >>> >>> Thank you, >>> Hubert >>> >>> -- 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/2ae0ece9-b8a4-4cbe-b88f-8ee9ae549fff%40googlegroups.com.

