(Edit) Actually, there is a plugin with the same functionality that have been released in community plugins. So, it’s better to consider using the released one instead:
Hi everyone! I’ve managed making a plugin that extends native find-and-replace functionality. It offers:
Search rules. Add some basic search rules such as case-sensitive, regexp, etc.
Replace in selection. Replace all the matches that are in the selection range.
Native look. Adapt to the native design guidelines.
Keep last input. Remember the last query you’ve input.
Popover and canvas support. Support both popover and canvas editor.
Currently, installation can only be done manually or through BRAT. Glad to see your feedback.