I am using Ubuntu 12.04.I want to install Regex Search and Replace plugin for Gedit.So can some one please tell me where can I get it and install it.Any help and suggestions will be highly appreciable.
3 Answers
Download Regular Expression Plugin for Gedit 3. Extract the tar package , then copy it to Gedit plugins directory from the Extracted folder.
For a particular user , do
cd ~/Downloads
wget 'https://live.gnome.org/Gedit/Plugins?action=AttachFile&do=get&target=regex_replace-gedit3.tar.gz' -o regex_replace-gedit3.tar.gz
tar xf regex_replace-gedit3.tar.gz
mkdir -p ~/.local/share/gedit/plugins
mv ~/Downloads/regex_replace ~/.local/share/gedit/plugins
And for the all the users in system
sudo cp -r ~/Downloads/regex_replace /usr/lib/gedit/plugins/
After copying the plugin you can enable it in Gedit 3 under Edit > Preferences, clicking on Plugins tab and checking the box for Regex Search and Replace.
Another alternate is also available as Advanced Find / Replace
P.S. : Thanks mac9416 for suggesting the individual User part.
-
1Someone posted very thorough instructions for install Gedit 3 plugins: http://askubuntu.com/questions/61785/how-do-i-install-a-plugin-for-gedit-v3 It might be easier to use the user's plugin directory. `mkdir -p ~/.local/share/gedit/plugins` `cp /home/user/Downloads/regex_replace ~/.local/share/gedit/plugins` – crenshaw-dev Aug 09 '12 at 13:00
-
2Thanks , you are really free to edit it for making it to include better content from next time :) – atenz Aug 09 '12 at 14:11
-
2Thanks @tijybba..it worked for me but I got an error when trying to copy.The error was `cp: omitting directory `regex_replace'`. Finally I had to use `sudo cp -r`.That worked perfectly for me.Can you tell me what is the shortcut key to the regex search when using gedit? – newuser Aug 10 '12 at 01:18
-
Since Gedit 3 comes with a inbuilt `Replace` option at `Ctrl+H` , there is no shortcut specified , but you can access it under **`Search`** menu bar as `Regular Expression` , i know it is inconvenient w/o shortcut . I will post the Shortcut if i find out :) – atenz Aug 10 '12 at 06:19
-
1Everything is OK except the link [Regular Expression Plugin for Gedit 3](https://live.gnome.org/Gedit/Plugins?action=AttachFile&do=get&target=regex_replace-gedit3.tar.gz). I downloaded [this](https://wiki.gnome.org/Apps/Gedit/Plugins?action=AttachFile&do=get&target=regex_replace-gedit3.tar.gz) – Maksim Dmitriev Dec 01 '13 at 16:23
-
Seems to be no longer working in Ubuntu 13.10, Gedit 3.8.3. – Eero Aaltonen Feb 16 '14 at 15:35
The best plugin I have found is Advanced find / replace plugin for gedit that you can find in http://code.google.com/p/advanced-find/.
About how to install, you can follow the instructions in its wiki page http://code.google.com/p/advanced-find/wiki/Installation.
Basically what you must do is:
Download the correct version for your gedit from http://code.google.com/p/advanced-find/downloads/list.
Decompress it.
Run install.sh (without sudo).
Go to preferences / plug-in and activate it.
It have many many features like search in opened files or bookmark a search.

- 622
- 10
- 21
-
1Thanks, I ended up using this because all the links to the other one seem dead. Edit: Which this one will be too soon unless they move from Google Code. – powerbuoy Mar 25 '15 at 17:38
-
1@powerbuoy Yes, but in this case, we will have the clone on my own account in github https://github.com/PhoneixS/advanced-find – PhoneixS Mar 25 '15 at 18:07