I know we have different ways of calling for regex. But, I think it would be very straightforward to use if Hazel natively supports regex in the content match condition; along with other patterns.
Please see other threads on this. This will not be happening for the forseeable future. You can use regex in the scripting language of your choice to do what you need.