small regex processor