Comments on: Rock the Funky Finder Regex Official blog of Red Sweater Software Mon, 08 Jun 2015 17:59:57 +0000 hourly 1 By: Jan Wed, 14 Dec 2005 12:07:38 +0000 Neat!
It does not do exactly the same thing,
but ordering the entries by “Kind” does an
extremely good job on groping related files.
In this case, you’d have all the .m and .h files
in separate groups, making the selection a bit

Nevertheless, good to know there is a regex
script when needed ;-)


By: Daniel Jalkut Sat, 03 Sep 2005 03:27:55 +0000 Hah! I didn’t think when I wrote this script that I’d be exposing a weakness in Apple’s Script Menu. If you’re not familiar with my FastScripts product, it’s basically ASM on steroids. The result of 3 years of gradually improving upon what started out as a frustrated “ASM is not good enough” sentiment.

I really thought that the ASM supported shell scripts, but maybe that functionality got lost somewhere along the way. The nice thing about running it with FastScripts is you can also associate it with a keystroke for super-easy invocation while you’re keyboard navigating in the Finder. Plug, plug! :)

Regular expressions are slightly different than “wildcard” notation. The * in a regular expression means “0 or more of what I am tagging”. In your example of “*indow” there has to be something before the * to tag. So you could say “.*indow” which means “match 0 or more of any character (.) followed by indow”. To literally match “ends in indow” you would use the expression “indow$” which means “find indow followed by the end”.

Since the script is using perl, you can find some great references out there by searching google for “perl regular expressions.”

By: Simone Manganelli Sat, 03 Sep 2005 02:30:31 +0000 Heh heh. Just saw this after looking at your Apple bug post. This is SO AWESOME. The only thing is that I can’t get it to work from the Script menu! :( Any suggestions? (I tried adding a .command or .pl extension, but still no dice.)

I can get it to work by adding a “.command” extension so that it’s double-clickable, but then it requires me to open the enclosing folder, and endure an extra Terminal window. Also, how come I can’t do a regular expression such as “*indow”? It complains, saying “quantifier follows nothing in regex”, but I thought that “*indow” would simply mean that it ends in “indow”?

— Simone