Yes, you're right, but you forgot the '_' character in your regexp. I think that the right one is: `unless logical_path =~ %r{(^|/)_[^/]*.css$}`