Thank you TT! It works like a charm and solved my accidental empty input 
issue. I've saved your code for future use as well.

Thanks again!

Regards,
Hubert

On Tuesday, 3 December 2019 10:48:51 UTC, TiddlyTweeter wrote:
>
> Ciao Hubert
>
> When you copy off net you need to discard the containing "/ ... /". You 
> don't need them in TW regex operators. They are normally for handing "raw 
> regex" in JS which TW itself handles for you.
>
> Here is some code ... First matches !!field that is whitespace only. 
> Second matches empty !!field. Third combines both. 
>
> <$list filter="[{!!data1}regexp[^\s+$]]" emptyMessage="{{!!data1}}">
>
>   Field is  whitespace
>
> </$list>
>
> <$list filter="[{!!data1}regexp[^$]]" emptyMessage="{{!!data1}}">
>
>   Field is empty
>
> </$list>
>
> <$list filter="[{!!data1}regexp[^\s*$]]" emptyMessage="{{!!data1}}">
>
>   Field is empty or is whitespace
>
> </$list>
>
> Best wishes
> TT
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e23b7620-654d-461f-a8b4-335bef6b6762%40googlegroups.com.

Reply via email to