You can use shell script from apple script in a smart rule; and that does support regex (whilst you probably don’t need an example, Jim posted one for me here.
You can use shell script from apple script in a smart rule; and that does support regex (whilst you probably don’t need an example, Jim posted one for me here.