Change some search index update code to do two regexps backwards.