find-pattern-first method for regex too.