How to Replace or Delete a paragraph in a Text File?

Applies To: AutoMate 10
Published: 12/13/06

I have a text file with some tags and paragraphs that I want to delete For example, I want Automate to remove EVERYTHING in between the <h1> and the #BREAK# tags below, including the tags themselves. An example is the paragraph below:

< h1 >ABOUT THE AUTHOR< /h1 > Kathy Unruh is a singer/songwriter and webmaster of ABC Learn Guitar. She has been writing songs and providing guitar lessons to students of all ages for over 20 years. For free guitar lessons, plus tips and resources on songwriting, recording and creating a music career, please visit: < A href="">>< /A > #BREAK#

There are many paragraphs like that in the text file that begin with "<h1>" and end with "#BREAK#"
I tried using the "<h1>*#BREAK#" (using the wildcard symbol) and replacing it with nothing, but that didn't work.

I used the same process to remove the "<b>" & "</b>" tags successfully, but it doesn't work with wildcards.

I've enclosed the Task, and the text file. I hope you can correct it to perfom the deletion.

To see the entire thread click here