# Text Find / Replace =&gt; Fail if not exactly

**URL:** https://www.finalbuilder.com/forums/t/text-find-replace-gt-fail-if-not-exactly/3767
**Category:** Feature Requests
**Created:** [November 21, 2006, 4:40am UTC](https://www.finalbuilder.com/forums/t/text-find-replace-gt-fail-if-not-exactly/3767 "2006-11-21T04:40:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![stevage](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@stevage](https://www.finalbuilder.com/forums/u/stevage)
#### Post date: [November 21, 2006, 4:40am UTC](https://www.finalbuilder.com/forums/t/text-find-replace-gt-fail-if-not-exactly/3767/1 "2006-11-21T04:40:59Z")

</div>

Slightly surprising that you can’t fail if the number of matches is not _equal_ to a value. Perhaps the “is less” and “is more” options could be made not mutually exclusive?  
  
In my case, I want to replace 1 piece of text. 0 would be bad. 2 would be bad…(yes, there is a workaround…)  
  
Steve

---

<div class="post-metadata">

### Author: ![rod\_prdsoftware](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/rod_prdsoftware/32/39_2.png) [@rod\_prdsoftware](https://www.finalbuilder.com/forums/u/rod_prdsoftware)
#### Post date: [November 21, 2006, 4:55am UTC](https://www.finalbuilder.com/forums/t/text-find-replace-gt-fail-if-not-exactly/3767/2 "2006-11-21T04:55:00Z")

</div>

I was in the same boat… I ended up using the “Text Replace (Deprecated)” action instead. This action allows you to control exactly how many replacements should occur.  
  
Hope this helps,  
  
Rod

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [November 21, 2006, 11:36am UTC](https://www.finalbuilder.com/forums/t/text-find-replace-gt-fail-if-not-exactly/3767/3 "2006-11-21T11:36:54Z")

</div>

Hi guys,  
  
Thanks for letting us know about this shortcoming. We’ll add another “Fail if not X replacements” option to the to-do list.  
  
Regards,  
  
Angus
