(re_search_2): Optimize searching for anchored