multiple approx pattern match using cheap algorithm from regex