Page 1 of 1

Saving search / replace settings (regexp etc)

Posted: Wed Jan 06, 2010 6:53 pm
by louiscar
Hi,

I was wondering if there is a way to save a replace string.

I tend to struggle a bit with regular expressions but once I've worked them out and got them working they are powerful and worth saving.

However, there is no facility for this. The best I've been able to manage is to save a macro with the replace box storing my last regex in it. Unfortunately this isn't ideal as macros can't be edited and it's not easy to see what's in them after saving so it's not easy to learn or adjust an existing regex once made into a macro.

I believe strongly in teaching to fish rather than giving fish. :-)

Any solutions to this or is the only solution to create and external doc of useful regex lines?

Posted: Wed Jan 06, 2010 8:27 pm
by Bob Hansen
Make a Clip Library for your Regex parameters. Then you can Copy/Paste into the string boxes.

You can also add notes to the individual clips to help explain anything that mght be confusing.

Posted: Thu Jan 07, 2010 2:30 am
by louiscar
Bob Hansen wrote:Make a Clip Library
Thanks Bob that's a great idea. I was unaware that I could do this. I see it creates a .tcl file which is good because I can back this up and restore it when updating.