# Text Find / Replace RegEx Performance

**URL:** https://www.finalbuilder.com/forums/t/text-find-replace-regex-performance/3154
**Category:** Bugs
**Created:** [September 29, 2009, 8:33am UTC](https://www.finalbuilder.com/forums/t/text-find-replace-regex-performance/3154 "2009-09-29T08:33:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [September 29, 2009, 8:33am UTC](https://www.finalbuilder.com/forums/t/text-find-replace-regex-performance/3154/1 "2009-09-29T08:33:10Z")

</div>

I&nbsp;am using the Text Replace step with Regular&nbsp;Expression.

I&nbsp;am trying to&nbsp;replace ((?s).\*?CUTHERE\*\*\/) with blank space but the step has been running for over&nbsp;20 minutes using 50% CPU on a dual core system.

It's a 1mb&nbsp;.SQL&nbsp;script file so I don't&nbsp;think it should take that&nbsp;long... I'm simply trying to remove all the lines from the beginning of the document to the line that is /\*\*CUTHERE\*\*

Even if I&nbsp;signal a Stop, the process will continue to run.&nbsp;If I try to close FinalBuilder, it says it needs to end the build, but FinalBuilder continues to run the step at 50% CPU&nbsp;and never closes. I have to kill the process.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [September 30, 2009, 3:15am UTC](https://www.finalbuilder.com/forums/t/text-find-replace-regex-performance/3154/2 "2009-09-30T03:15:50Z")

</div>

Please see my reply to your other post on this topic.
