TonyM

A bit more. Slightly more advanced. You could do a "pseudo-range" in regex 
like below.

The regex uses "alternation", *"|", *to separate decade ranges, its a bit 
like an OR construct. (Though in regex its a pattern that advances from 
left to right, recusing through alternates, till there is a match, or not.)

*[2][2-9] - *matches 22-29
*[3-4][0-9] - *matches 30-49 (this could be any number of decades that 
remain whole)
*[5][0-5] - *matches 50-55

*_Ages 22 -> 55_"^([2][2-9]|[3-4][0-9]|[5][0-5])$"*
*  "->" indicates a match ... *

_Age 22 -> 55_ regex: "^([2][2-9]|[3-4][0-9]|[5][0-5])$"↩︎
↩︎
... These should NOT match↩︎
21↩︎
56↩︎
300↩︎
4↩︎
05↩︎
... These should match↩︎
->22↩︎
->29↩︎
->30↩︎
->37↩︎
->40↩︎
->45↩︎
->55↩︎


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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ceb4c803-452d-4231-9ba6-230b076b2ca3%40googlegroups.com.

Reply via email to