Don't search if input regexp is not valid yet.

Input regexp may be invalid when users are inputting it.
Support case sensitive highlighting
Correct saving replacement history
Merge pull request #38 from syohex/improve-replacement

Improve replacement command