How to replace a string/character in topic title?

the regular expression for title should be something like this:
<title>()</title>

how can I search in title tags in the remap command?

rake posts:remap[“-”," "]