fixed an awful typo in the regexp

The regexp fails when backslashes are used in the search-regexp. The closing bracket was at the wrong position.