Smart group that looks for number between x and y?

Hi all,

I want to create a smart group that looks for all groups that have a number tween 52 and 70 in their title.

I tried this (see screenshot attached)

However, this only yields one result whereas I have many groups with numbers between 52 and 70 in the title.

What am I doing wrong?
Schermafbeelding 2013-03-04 om 14.52.28.png

This is a tougher nut to crack because of the “2”. What about 50-70? Or a group of the 50’s, a group of the 60’s, etc.

Ahh… here we go with a little help from a brilliant page on this site: utilitymill.com/utility/Regex_For_Range

I am always looking for smaller, more concise code but this does work nicely (even if it’s a bit longer than I’d like)
Case (5[2-9]|[4-6][0-9]|70)

I didn’t expect the 2 to be the problem – probably because I didn’t know what was behind the formula.

Thanks for your help – it’s still way more elegant than “matches 52 OR 53 OR 54…”

My pleasure. REGEX is fun but can cause high blood pressure after awhile. ;^)