Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 12 down vote accepted

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 '' -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.

share|improve this answer
Someone posted very thorough instructions for install Gedit 3 plugins:… 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 – mac9416 Aug 9 '12 at 13:00
Thanks , you are really free to edit it for making it to include better content from next time :) – atenz Aug 9 '12 at 14:11
Cool, thanks. :-) – mac9416 Aug 9 '12 at 16:31
Thanks 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 1:18
Everything is OK except the link Regular Expression Plugin for Gedit 3. I downloaded this – Maksim Dmitriev Dec 1 '13 at 16:23

The best plugin I have found is Advanced find / replace plugin for gedit that you can find in

About how to install, you can follow the instructions in its wiki page

Basically what you must do is:

  1. Download the correct version for your gedit from

  2. Decompress it.

  3. Run (without sudo).

  4. Go to preferences / plug-in and activate it.

It have many many features like search in opened files or bookmark a search.

Screen capture of Advanced Find/Replace dialog opened

share|improve this answer
Thanks, 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
@powerbuoy Yes, but in this case, we will have the clone on my own account in github – PhoneixS Mar 25 '15 at 18:07

At least for Ubuntu 14.04, there is a regex plugin available from the gedit-developers-plugins package. If this package doesn't work for you, as it didn't work for me, here is the solution.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.