I’m trying to create a search to search a certain field in a number of tiddlers that is formated like this yyyy-mm-dd. It’s a date field. The sticky point for me is that I don’t want any search results to appear until some minimum number of characters are typed in the edit text widget. Using the minlength[] operator like this:
I’d like to not have any results show until at least the first three characters of the year are typed. I think it could be done with a regular expression, but I don’t know that well enough.
Perhaps its useful to think of regexp as searching or testing for strings or patterns but if you are simply testing integers or regular maths there are more direct methods.
For example you may use maths for a test for 5 stars but regex for ***** stars.
Regex in TW is very useful. There has been a lot of work trying to explain implementing (1) Regex in general (that TW can do well); and (2) the one special rule needed (you can’t use the regex [character class] directly as it is reserved for filter syntax) for the TW regexp operator.