Ubuntu – Install Regex plugin for Gedit

geditpluginsregex

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.

Best Answer

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.