Finder: Finding files with digits

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

User avatar
Sudhin
New Member
Posts: 5
Joined: 2002 Oct 27, 08:17
Location: India

Finder: Finding files with digits

Post by Sudhin »


How do I search for filenames which contain numbers:
1. At least one number > admin1.txt to admin9.txt
2. At least two numbers > user12.txt to user99.txt
and so on...

I tried regular expressions *[0-9]. But this doesn't return any files.
Does xplorer2 support regular expression in Finder? Where do I find more documenation about this feature?

Last edited by Sudhin on 2004 Jul 25, 15:29, edited 1 time in total.
User avatar
nikos
Site Admin
Site Admin
Posts: 16344
Joined: 2002 Feb 07, 15:57
Location: UK

Post by nikos »

unfortunately regular expressions aren't supported (yet)
so there's no way to search for digits
you can use the generic *? wildcards, and that's about it for filenames
User avatar
Sudhin
New Member
Posts: 5
Joined: 2002 Oct 27, 08:17
Location: India

Post by Sudhin »

Thank you, Nikos. For the quick reply. :)

On the same topic, I figured I can add Additional Rules. But to search for 0-9 would result in 10 rules. Is there a way to concatenate the rules (say using boolean logic) so as to achive the same result in one line?
User avatar
nikos
Site Admin
Site Admin
Posts: 16344
Joined: 2002 Feb 07, 15:57
Location: UK

Post by nikos »

now that i think about it, you gave me an idea!
you can also scan for filenames using the "name" additional rule
if you use a string like 0,1,2,3,4,5,6,7,8,9 for the name rule, you'll get all filenames that include a digit!

notice how commas are used to perform boolean OR within the text content, which in this case is the name. You only need the one rule. The quickstart guide explains this in more detail