Alternative Pattern Match in search criteria

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Is it possible to alter the search criteria with patterns as substitutions (like when you case change or replace text in actions). Specific example, I have a .txt lookup table containing a list of property names in one column:
eg: 12 Smith St, 55 Main St, 10 Johnston Av

I want to search for a modified string version of those property names in the filename without having to add another column in the lookup table:
eg: 12_SMITH_ST, 55_MAIN_ST, 10_JOHNSTON_AV

So, the search criteria pattern would be change to UPPERCASE and replace " " with "_"

Historically, I've found that changing columns in that lookup table breaks EVERY Hazel rule that uses it (a LOT of rules), but also, I can see that a dynamic "text substitution" in search criteria could be useful. Any way to do this?
Lachlan Williams
 
Posts: 20
Joined: Fri Jun 11, 2021 4:06 am

You can't do that but you may want to consider using (anything) instead of a space to match both cases.
Mr_Noodle
Site Admin
 
Posts: 11903
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support