Trouble with a 'find' macro when recording a new macro

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
mp2010
Posts: 1
Joined: Mon Mar 29, 2010 4:41 pm

Trouble with a 'find' macro when recording a new macro

Post by mp2010 »

Hi all,

Per the manual, Textpad is able to record previously created macros into a new macro. However, I've run into a peculiar problem when attempting to do so.

I have created a very simple 'find' macro that searches through the current document for any"<img" tag. If such a line is detected, I've used basic keystrokes to select the entire line, and delete it. The macro is configured to repeat until the end of the file.

This works fine if no new macro is being recorded when executed. However, if I attempt to record a new macro and then execute the previously described 'find' macro, it will reach the point where no more matches are found and then display the error "Cannot find literal text '<img'". It then deletes the line it's at and this error cycle continues endlessly until no content is left on the page.

I would appreciate any advice to resolve this matter.
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

search for (regex)

Code: Select all

.*<img.*\n
and replace by nothing.
Post Reply