Hello,

I'd like to detect if a string only consists of whitespace (i.e. is 
non-empty but has no characters). The filter should output an emptyMessage 
at all times except when the field data1 consists of whitespace and 
whitespace alone.

I have the following code with regex found online but it doesn't work. 
Would anyone have any idea how I could make this work?

<$set name="regex" value="/^\s*$/">
<$list filter="[{!!data1}regexp<regex>]" emptyMessage="{{!!data1}}">

String contains only whitespace

</$list>
</$set>

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/19c3daab-5453-478d-a6e2-889cf2af9bf6%40googlegroups.com.

Reply via email to