support regex thresholds