One more for duplicate words, where a word is defined as something with at 
least two characters and separated by at least one space.

<option value="^\s*(\w{2,})\s+.*\1.*$">Duplicate words</option>


On Friday, August 23, 2019 at 7:50:33 AM UTC-7, Mark S. wrote:
>
> Here's code for the first easy 9 (assuming my def of extension matches 
> yours).
>
> #10 and #11 should be doable, it would just take a little more time which 
> I don't have at the moment.
>
> I don't think 12 is doable with the current regexp kit. To find duplicates 
> it would have to loop back on itself.
>
> #13 should be 90+% doable. I would start by searching the net. It depends 
> on how picky you are about the 
> structure. 
>
> Good luck!
>
>
> <$select tiddler="myregexp">
> <option value="^[0-9]*$">Only digits</option>
> <option value="^[a-z]*$">Only lower case</option>
> <option value="^[A-Z]*$">Only upper case</option>
> <option value="^[\w-_]*$">Only alphanumeric, _, and -</option>
> <option value="^[\w]{3,15}$">Only alphanum len 3-15</option>
> <option value="^[A-Z]+.*$">Starts with capital</option>
> <option value="^[0-9]+.*$">Starts with digit</option>
> <option value="^.+\.[a-zA-Z]{3,4}$">Extensions only</option>
> <option value="^.+(\.jpg|\.gpeg)$">Extension jpg gpeg</option>
>
> </$select>
>
> <$list filter="[regexp{myregexp}sort[]]">
>
> </$list>
>
>
>
>
> On Friday, August 23, 2019 at 12:11:07 AM UTC-7, Mohammad wrote:
>>
>> I am looking for examples and use cases of regexp in Tiddlywiki!
>> Those can be done current filter operators like prefix, search,... are 
>> not recommend to be done with regexp.
>>
>> I appreciate your help, case and examples on this. Just give what you 
>> want to do.
>>
>> Some case
>>
>> Give a regexp pattern in Tiddlywiki to match all tiddlers name are
>>
>>
>>    1. only digits
>>    2. only lowercase letters
>>    3. only uppercase letters
>>    4. only alphanumeric and underscore and hyphen
>>    5. only alphanumeric with length between 3 and 15
>>    6. start with a capital letter
>>    7. start with a digit
>>    8. have a extension like mytiddler.ext
>>    9. have jpg or jpeg extension like *mytiddler.jpg* or *mytiddler.gpeg*
>>    10. are a date in format like Jan 06 2019 
>>    11. are a date in format like 2019.08.25 
>>    12. have duplicate words
>>    13. have a valid url
>>    14. 
>>    
>>
>> [This list will grow by more examples]
>>
>>
>> Please give your use case.
>>
>> -- Mohammad
>>
>>

-- 
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/17691950-b5d0-4c8f-a43a-c2342c1b45ff%40googlegroups.com.

Reply via email to