Simplified regex on db hooks