Saving search / replace settings (regexp etc)

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
louiscar
Posts: 3
Joined: Wed Jan 06, 2010 6:47 pm

Saving search / replace settings (regexp etc)

Post 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?
User avatar
Bob Hansen
Posts: 1517
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post 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.
Hope this was helpful.............good luck,
Bob
louiscar
Posts: 3
Joined: Wed Jan 06, 2010 6:47 pm

Post 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.
Post Reply