Fixed pathological regex search.