Make buffer search use regex.