johnturek / advanced-find

Automatically exported from code.google.com/p/advanced-find
0 stars 0 forks source link

[Feature Request] Regex replace with capture #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

I was hoping to be able to use regex captures and use the captured string as 
the replacement string.

For example:
Expression: ([A-Z]+[a-z]+)$
Replace with: %CAPTURE%
Text:
This That
Foo Bar

Text (after replace):
That
Bar

If this is already implemented, please let me know.  Also, do you guys see this 
as something others may find useful?

Original issue reported on code.google.com by earthme...@gmail.com on 2 May 2012 at 6:55

GoogleCodeExporter commented 9 years ago
You can do that by using the following patterns.

Find what : .+\s([A-Z]+[a-z]+)$
Replace with : \1

Original comment by swatch.c...@gmail.com on 2 May 2012 at 11:50

GoogleCodeExporter commented 9 years ago

Original comment by swatch.c...@gmail.com on 3 May 2012 at 3:36

GoogleCodeExporter commented 9 years ago

Original comment by swatch.c...@gmail.com on 3 May 2012 at 4:52

GoogleCodeExporter commented 9 years ago
Thanks for clarifying and sorry for my ignorance.

You guys are providing a great tool for a great text editor.  Thank you so much 
:D

Original comment by earthme...@gmail.com on 3 May 2012 at 5:35