hs2 said everything I was going to say... so I will share my experience:
I am new to using macros too. One of my jobs is to convert HTML to DocBook, so I am in a similar position. I have to strip a lot of different HTML tags that sometimes span more than one line, and replace them with various Docbook tags, which sometimes also span multiple lines (or include line breaks).
I use SlickEdit regular expressions to search and replace. The documentation is pretty good (look for "regular expressions" in the Help Index). Also the Regex Evaluator helps (Tools > Regex Evaluator). I have a lot of search/replace operations to do, so I put them all in one big macro that I run each time I open a new file to convert.
The hardest part was figuring out the correct regular expression. For example, given the following HTML:
Click <font class="
cs="guibutton"
origTag="guibutton">Save All</font> at
Using the following search/replace operations with SlickEdit regular expressions:
Search for: <font class="cguibutton"\om?*origTag="guibutton">
Replace with: <guibutton>
and then:
Search for: {\<guibutton\>?*}\</font>
Replace with: #0</guibutton>
My final code looks like:
Click <guibutton>Save All</guibutton> at
I recorded these s/r operations into macros, and instead of saving, I clicked "Edit" to just view the source, and cut/pasted them to my master "named" macro in vusrmacs.e (which you can access if you click Macro > List Macros, select your named macro and click Edit).
The macro code looks like this:
replace_buffer_text('<font class="cguibutton"\om?*origTag="guibutton">','RIP*',
'<guibutton>','0','0','0');
replace_buffer_text('{\<guibutton\>?*}\</font>','RIP*',
'#0</guibutton>','0','0','0');
Good luck!