# Regular expression to parse HTML tags crashes Automise 4

**URL:** https://www.finalbuilder.com/forums/t/regular-expression-to-parse-html-tags-crashes-automise-4/4706
**Category:** Bugs
**Created:** [April 8, 2016, 7:55am UTC](https://www.finalbuilder.com/forums/t/regular-expression-to-parse-html-tags-crashes-automise-4/4706 "2016-04-08T07:55:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jonathanmeltzer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jonathanmeltzer](https://www.finalbuilder.com/forums/u/jonathanmeltzer)
#### Post date: [April 8, 2016, 7:55am UTC](https://www.finalbuilder.com/forums/t/regular-expression-to-parse-html-tags-crashes-automise-4/4706/1 "2016-04-08T07:55:44Z")

</div>

I am trying to parse the HTML tags out of a file that is about 6600 lines long. &nbsp;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:  
&nbsp; Problem Event Name: APPCRASH  
&nbsp; Application Name: Automise4.exe  
&nbsp; Application Version: 4.0.0.919  
&nbsp; Application Timestamp: 56d65fe5  
&nbsp; Fault Module Name: rtl140.bpl  
&nbsp; Fault Module Version: 14.0.3593.25826  
&nbsp; Fault Module Timestamp: 4aef9662  
&nbsp; Exception Code: c0000005  
&nbsp; Exception Offset: 0000d161  
&nbsp; OS Version: 6.1.7601.2.1.0.272.7  
&nbsp; Locale ID: 1033  
&nbsp; Additional Information 1: b3db  
&nbsp; Additional Information 2: b3db78097a3083477df484815f0e2ea8  
&nbsp; Additional Information 3: ad06  
&nbsp; Additional Information 4: ad060fc010f00526f3ebe37957412aac

  

I am assuming a memory error, but I am not sure. &nbsp;Any advice on getting around this issue?  
  
Thanks,  
  
Jonathan

---

<div class="post-metadata">

### Author: ![jonathanmeltzer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jonathanmeltzer](https://www.finalbuilder.com/forums/u/jonathanmeltzer)
#### Post date: [April 8, 2016, 8:47am UTC](https://www.finalbuilder.com/forums/t/regular-expression-to-parse-html-tags-crashes-automise-4/4706/2 "2016-04-08T08:47:36Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [April 11, 2016, 1:27am UTC](https://www.finalbuilder.com/forums/t/regular-expression-to-parse-html-tags-crashes-automise-4/4706/3 "2016-04-11T01:27:22Z")

</div>

If you could send the file your attempting to parse and the Automise project that causes the error to our support email ([support@finalbuilder.com](mailto:support@finalbuilder.com)) we will be able to follow up in more detail.   
  
 Thanks.

---

<div class="post-metadata">

### Author: ![jonathanmeltzer](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jonathanmeltzer](https://www.finalbuilder.com/forums/u/jonathanmeltzer)
#### Post date: [April 27, 2016, 6:17am UTC](https://www.finalbuilder.com/forums/t/regular-expression-to-parse-html-tags-crashes-automise-4/4706/4 "2016-04-27T06:17:05Z")

</div>

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.
