Gedit by default doesn't contain regular expression search. To get this feature, you should install a plugin. We will use Regular Expression plugin from Ben Fisher.
1. Download Plugin
You can download the plugin at regex_replace-gedit3.tar.gz.
2. Install Plugin
- Copy the downloaded plugin file into ~/.local/share/gedit/plugins/ directory.
- Extract it.