Daniel Jalkut’s ‘Select Regular Expression’ Script for the Finder

I’ve been using this script for years: you enter a Perl regex pattern, the script will then select all items in the frontmost Finder window whose names match the pattern.

I’ve made a one-character customization to Jalkut’s script. His line 69:

if ($thisLeaf =~ /$pattern/)

I’ve changed this to:

if ($thisLeaf =~ /$pattern/i)

which makes the file name match case insensitive.

Monday, 31 May 2010