Regular expression to parse HTML tags crashes Automise 4

I am trying to parse the HTML tags out of a file that is about 6600 lines long.  I have tried to do it as a global Text Replace, and when that did not work, I tried to use File Iterator to parse the HTML tags out line-by-line (using Text Replace on each line).

In both instances, Automise ran for a few seconds and then crashed at line 40 of 6600.

The regular expression I am using (which does work to isolate HTML tags) is:

The error when the app crashes (using File Iterator) is:

Problem signature:
  Problem Event Name: APPCRASH
  Application Name: Automise4.exe
  Application Version:
  Application Timestamp: 56d65fe5
  Fault Module Name: rtl140.bpl
  Fault Module Version: 14.0.3593.25826
  Fault Module Timestamp: 4aef9662
  Exception Code: c0000005
  Exception Offset: 0000d161
  OS Version: 6.1.7601.
  Locale ID: 1033
  Additional Information 1: b3db
  Additional Information 2: b3db78097a3083477df484815f0e2ea8
  Additional Information 3: ad06
  Additional Information 4: ad060fc010f00526f3ebe37957412aac

I am assuming a memory error, but I am not sure.  Any advice on getting around this issue?



More information: It routinely crashes when trying to parse the following line, and others like it that have image data:

I am ignoring these lines in the file for now, and it seems to work better with the File Iterator.

If you could send the file your attempting to parse and the Automise project that causes the error to our support email ( we will be able to follow up in more detail.


I appreciate that. I am taking out image data (with image tags) from the file before trying to process it, and it does help. However, I am running into another instance of the parsing causing the app to silently die, and as soon as I can replicate it consistently I will send you the files so you can let me know what is going on.