PP
BenApril 9, 2008
Thanks, it works perfectly.

Question: Is it possible to use Ctrl-H shortcut? Or add a shortcut for it, at least.
PP
eplawlessApril 14, 2008
Thanks for this; really excellent work.
PP
SandyApril 23, 2008
Thank you, I was looking for just this sort of thing!
PP
RafaelMay 22, 2008
Hey man, very nice to see my contribution could be extended!

I'll test later!

Thank you!
PP
morkSeptember 23, 2008
thank you! good work!
PP
RafaelDecember 3, 2008
Hey Ben,
I'm commenting just to thank you for the work. It's being useful.

Best,
Rafael.
PP
WaldirApril 2, 2009
Thanks a lot for the excellent plugin. However it would be even better if it didn't disable the replace buttons if there's no text in the replace field. Sometimes we need to just remove some parts of a text, not replace them with something else. Can you do this?
PP
FacelegJune 1, 2009
Thanks for this!

I agreed with Waldir, being able to replace text with nothing (delete) is very useful.
PP
AndrewJune 2, 2009
Thanks for this, but my first use of it found a bug. I want to remove the first two leading spaces, so I search for '^ '

It looks like the '^' is not bound to the start of the current line, it's bound to the point where the search begins. Being cautious, I used 'find' a few times before doing the replace all. It steps through multiple matches on the same line.

My wishlist:

1. Fix the above
2. Add a hotkey to bring up the dialog
3. Add a replace and search again button with keyboard shortcut.

It's nearly there.

I've been using nedit, which is not bad, except that it doesn't understand the gnome virtual file system, which would be much more convenient sometimes.
PP
robJuly 22, 2009
Nice, thanks! It would be nice to have a keyboard shortcut or a 'highlight all' option.
PP
beliJuly 28, 2009
Thanks, very useful!
PP
beliJuly 28, 2009
Would it be possible to replace text in a highlighted (selected with the mouse cursor) region?
PP
brian.j.bowersAugust 2, 2009
Yeah, I agree. Can we add a checkbox option for "Search/Replace Within Selected Text Only"?
PP
sergey892December 4, 2009
Thanks for the great plugin! Regular expressions really make gedit useful!
PP
njcarFebruary 17, 2010
Hey Ben,

Thanks for the awesome plugin. Hope I have the skills to write these sorts of things one day.

Nick
PP
tiggsyMarch 9, 2010
Lovely! Now, why don't they just include this with the regular plugins, i wonder?
PP
edApril 15, 2010
Easy to install and use.
Many thanks!
PP
hemanMay 1, 2010
Thanks!!
PP
LiraNunaMay 2, 2010
I would say, extend the original search and replace interface and add a 'Regular expression' option - best of both world.
PP
fruit.devMay 20, 2010
very useful plugin, thanks
PP
MaxoMay 20, 2010
I'd like to echo what LiraNuna said. It would be great if this extended the regular Search and Replace window.
Otherwise, very useful.
PP
NoelMay 27, 2010
Great work!! It would be nice to have an option to toggle between single-line and multi-line mode.
PP
johann.fotJune 1, 2010
THX
PP
PhoneixSJune 17, 2010
Thanks for the plugin. Can you make it translatable, if you like, I can translate it's texts into spanish.
PP
YvaAugust 22, 2010
Very nice work!

Small bug though: when there is 2 successive matches the second one isn't caught.
Example: when using "<.+?>" on "this is a test test" the < /b> isn't caught.
PP
Thomas KäferSeptember 4, 2010
Thanks for the great plugin!

What im missing:
-) Shortcut or merge with standard replace strg+h
-) Dont disable replace buttons when replace field is empty
PP
AnonymousSeptember 22, 2010
For those who want to replace something for nothing (the empty string), if we open the file regexsearchinstance.py and change the line
----
if len(search_text) > 0 and len(replace_text) > 0:
----
to
----
if len(search_text) > 0:# and len(replace_text) > 0:
----
and save, the program will not disable the replace all button. (but I'm not sure if it will break it in anyway - I hope not).
PP
GavinOctober 20, 2010
nice plugin. Im having a problem with replacing, unless I'm doing something wrong. Replace with '\n' inserts literal \n instead of LF.

I'm trying to add text at the beginning of each line:

match: '\n'
replace: '\n2010-09-17,'

the match works but the replace not.
PP
WaldirOctober 20, 2010
Gavin, I too find that annoying, but you can use a trick to workaround that: just enclose the \n in the search field as (\n), and use \1 (or whatever numbered reference it is) in the replace field.

Granted, this is not a complete solution, since not always you'll have newlines in the search field, but as I said, it's a workaround :)

Btw, thanks anonymous (↑↑) for the empty string replace trick! However, I think I don't recall doing it, and nevertheless the replace button doesn't get deactivated when the replace field is empty (I can't remember when it stopped doing that). Can anyone confirm this is the default behavior without applying anonymous' hack? Maybe something changed in gedit itself.
PP
pmortonDecember 5, 2010
This is really useful. I'm having trouble with changing case though. \L and \U don't work on backreferences in the replace field to change the case to upper. Does anyone know how to change case?
PP
RichardJanuary 1, 2011
seems to work well, thanks a lot,
gedit really needed some regex support
PP
ihoruJanuary 6, 2011
Thank u!!
PP
MPSJanuary 30, 2011
Really, really great!! Exactly what I was looking for. Many thanks
PP
DonaldFebruary 12, 2011
Thanks. This is great!!
PP
IronarjenMarch 31, 2011
Sorry, does not work at all. Regex Search and replace appears in the Plugin list but checking it does not change the search box
PP
WaldirApril 1, 2011
@Ironarjen it does work, but unfortunately it's not integrated into the main search/replcace dialogs. You have to use the menu Search > Regular expression (since there isn't a keyboard shortcut either).
PP
NikApril 7, 2011
Amazing thank you very much for this time saving plugin
Very easy to use
PP
quinnApril 16, 2011
Thank you! Your plugin is wonderful.
PP
François MichonneauApril 22, 2011
It doesn't seem to work in gedit 3 (doesn't show up in the menu). I put the plugin in ~/.local/share/gedit/plugins. Any hints on how to solve this?
PP
PaulMay 11, 2011
I'm using the Windows version of gEdit 2.30.1 (latest available!) and when I select the plugin in preferences it just greys out. Any ideas?

That's actually better than most plugins I've tried which just crash gEdit!
PP
PaulMay 11, 2011
Just to update, installing glade 3.6.7 (with GTK+) - all 17M - allowed me to select the check box and the plugin seems to function.

It would be nice to know which bits I really need and where they need to be located in Windows or the gEdit structure?
PP
BowserMay 19, 2011
Great plugin, does what it says. Thanks for posting!
PP
kyogreJuly 13, 2011
Totally awesome !!! Thank u man, a lot!
PP
Thanks very much.. Very useful and most needed plugin.
PP
MichaelAugust 5, 2011
@François

There is no way to make the plugin work in Gnome 3. Plugins for Gnome 2 are built in Gtk+2 but plugins for Gnome 3 are built in Gtk+3. I've run into this problem with other plugins I use that to run in Gnome 3 they require a complete recoding so until then we are out of luck, which is unfortunate because I really love this plugin.

Ben,

Do you have any plans to update the plugin to gnome 3 or should those of use on gnome 3 look for another solution?
PP
David BraultAugust 9, 2011
Yay! Thank you. Got it working on my machine now.
PP
Stephen BussardAugust 26, 2011
thanks
PP
NemoOctober 29, 2011
How do I get this work on gedit/gnome 3? I placed it under .local/share/gedit/plugins but it doesn't work, and https://code.google.com/p/a... is total crap
PP
Etienne LawlorOctober 31, 2011
I am also having trouble installing this plugin with gedit version 3.2.1. Has anyone been able to install this plugin successfully?
PP
KeyNeomNovember 19, 2011
What are the dependencies for your plugin? I'm running Arch-Linux with gnome3. I used the gnome3 version of the plugin I found at the gnome3 gedit plugins page but when I click "Regular Expression..." from the Search menu in gedit I get a blank frame that pops up. I haven't seen this happen with anything else so I figure it must be the dependencies you are using but any other suggestions are welcome. Thanks for your work!
PP
webeJanuary 10, 2012
hi ben.fisher,

thanks alot.

Works great on Ubuntu 10.04.2 LTS.
Great help for editing srt-files.

webe

PS. minor request: remember regex
PP
edekJanuary 13, 2012
Path for gedit plugins has changed to ~/.local/share/gedit/plugins
PP
WaldirJanuary 15, 2012
@edek: doesn't work for me (Ubuntu 11.10) and I tried placing it both in ~/.local/share/gedit/plugins (note: the gedit folder didn't exist, I created it myself) and /usr/share/gedit/plugins, to no avail; no menu entry, and no item in the plugin list (in the preferences dialog). Can you give some details on your system?
PP
Jack David BaucumJanuary 16, 2012
Anyone using a Gnome 3 distribution needs to grab the port at http://live.gnome.org/Gedit... also listed in the gedit plugins page at http://live.gnome.org/Gedit...
Ubuntu 11.10+ uses Gnome 3.
PP
edekJanuary 17, 2012
@Waldir

I use ubuntu 11.10.

That works for me (assume that your downloaded file is called regex.tar.gz):

tar xzvf regex.tar.gz
mkdir -p ~/.local/share/gedit/plugins
mv regex_replace ~/.local/share/gedit/plugins

start gedit

open preferences window, plugin should appear in the list
PP
NickleusJanuary 18, 2012
i made a one-stop tutorial for how to do this on ubuntu 11.10:
http://nickhumphreyit.blogspot.com/2012/01/how-to-install-gedit-regexregexp-plugin.html
PP
NickleusJanuary 18, 2012
when i close the regex box then try and open it again it is blank. i have to restart it to get it working again.
PP
BerightFebruary 7, 2012
Thanks for the plugin, very nice. For those complaining you can't replace with nothing, just type a space then delete it. Maybe that's something new though?
PP
MenegazzoFebruary 28, 2012
Man, i tried everything to put your plugin to work:

http://askubuntu.com/questi...

Tried many folders, like usr/lib/gedit/plugins, ~/.local/share/gedit/plugins and ~/.gnome2/gedit/plugins and nothing.

I think my problem is because my gedit is V3. Can you help me with hints about what to do? I am really addicted to regular expressions, but really newbie on linux systems. So things like compile/build/make myself are still a mistery.

Thanks in advance
PP
MenegazzoFebruary 28, 2012
Man, i tried everything to put your plugin to work:

http://askubuntu.com/questi...

Tried many folders, like usr/lib/gedit/plugins, ~/.local/share/gedit/plugins and ~/.gnome2/gedit/plugins and nothing.

I think my problem is because my gedit is V3. I am really addicted to regular expressions, but really newbie on linux systems. So things like compile/build/make myself are still a mistery.

Can you help me with any hints about what to do in order to gedit reconigze your plugin?
PP
Jack David BaucumFebruary 28, 2012
@Menegazzo:
Look at the above comments. The Gnome3 version of the plugin is at http://live.gnome.org/Gedit...
PP
MenegazzoFebruary 28, 2012
Sorry, i missed it!

I will try it at home.

Thanks
PP
MenegazzoFebruary 29, 2012
Working perfectly now. Congrats to Daniel d'Andrada T. de Carvalho and Ben Fisher, youre the guys. Because of your initiative, now i'm very tempted to learn a bit of python and plugin development.
PP
NickleusFebruary 29, 2012
*SWITCH* to geany if you want regex =) i've given up on gedit.

sudo apt-get install geany
PP
marklingMarch 12, 2012
This is pretty damn cool. You've really saved the day.

I hope I may help by making a suggestion. Would you please make it key into Gedit's 'Undo' function? It presently undoes (gedit2) the action prior to the regex command, or indeed any number of regex commands. I could regex for half an hour but undo would still undo the op before the first regex command was executed and therefore wipe out the whole lot.

Cheers.
PP
EvgeniiApril 16, 2012
http://live.gnome.org/Gedit...
links to new version of this plugin look here: http://nickhumphreyit.blogs...

download here:
http://live.gnome.org/Gedit...
PP
Hi, Ben et al.

Some time ago, I forked this plugin and made some significant changes on it. It supports an accel key (Control+R), highlights found text, etc. Also, I put it in a bitbucket project, so I bet it will be easier to manage the various versions and to fork it: https://bitbucket.org/brand...

BTW, I recently ported it to Gedit 3, which seems to be a very required feature - already provided by Jack Baucum, but anyway, it is available there too :)
PP
passshokSeptember 18, 2012
Hello!

I have gedit 3.4.1 on ubuntu 12.04 and I have some bugs with you plugin. Could you please fix it?

1. When I start gedit, the regexp dialog appears on screen for about 1 second and than it hides and gedit loads.
2. When I enter some text in regexp dialog in text field, I see no cursor blinking at all, text is editable, but no cursor indication!

Thank you! Nice day!
PP
passshokSeptember 18, 2012
Thank you. It was fixed in previous comment.
PP
Etienne LawlorOctober 16, 2012
I just wanted to mention this is a great plugin. I am just having this one issue. I am on Ubuntu 12.04 and using gedit v3.4.1.

The first time i open the plugin it works fine, then if i close it and try to open it back up in the same gedit session, i can only see the title bar of the dialog. When i go to expand the content below the title bar it appears all blank.
PP
samJanuary 1, 2013
Great hack, Ben-- you and Nickleus saved my day! --after spending half of it trying to get a regex S/R in gedit, with your help I have now accomplished something...
Thanks!
PP
BachsauSeptember 12, 2013
Updated Version for Pluma (MATE):
http://files.bachsau.com/pl...
PP
John RoseMarch 24, 2015
I'm using Ubuntu 14.04. There is no longer a ~/.gnome2/gedit/plugins directory. Is this to do with Ubuntu 14.04 using Gnome3? Into which directory should I put the plugin?

John
PP
ben.fisherownerOctober 29, 2016
Thanks everyone for the feedback and information. Current gedit has a built-in replace-with-regular-expression feature, so this plugin isn't needed anymore.