[os.q] replaced hand-written search and replace by ssr