Change the beginning and end of line to those of buffer in regexps.