# Regex to find words in Target that start with

**URL:** <https://forum.xbench.net/t/regex-to-find-words-in-target-that-start-with/819>\
**Category:** Technical Support\
**Created:** [August 23, 2021, 4:31pm UTC](https://forum.xbench.net/t/regex-to-find-words-in-target-that-start-with/819 "2021-08-23T16:31:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hugh](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@hugh](https://forum.xbench.net/u/hugh)\
**Post date:** [August 23, 2021, 4:31pm UTC](https://forum.xbench.net/t/regex-to-find-words-in-target-that-start-with/819/1 "2021-08-23T16:31:33Z")

</div>

Hi, i am trying to create a regex in a check list item to find words in the Target that start with “forne” but not if it is in the words “fornecedor” and “fornecedores”

Help is appreciated as i have been trying for the last couple of hours but not getting the results.

Thanks, Hugh

---

<div class="post-metadata">

**Author:** ![omartin](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/omartin/32/82_2.png) [@omartin](https://forum.xbench.net/u/omartin)\
**Post date:** [August 23, 2021, 6:17pm UTC](https://forum.xbench.net/t/regex-to-find-words-in-target-that-start-with/819/2 "2021-08-23T18:17:42Z")

</div>

This search should help:

Target: “\<forne” -“fornecedor(es)?”

Powesearch: on

Search mode: regular expression

Please note that this regex will no detect any segment that contain words starting with forne and the words fornecedor and fornecedores.

---

<div class="post-metadata">

**Author:** ![hugh](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@hugh](https://forum.xbench.net/u/hugh)\
**Post date:** [August 24, 2021, 12:35pm UTC](https://forum.xbench.net/t/regex-to-find-words-in-target-that-start-with/819/3 "2021-08-24T12:35:03Z")

</div>

Thank you Òscar, it works great.

Can i be bold and ask another query. I have been given a .bckl file with the following:

Target: [A-z]@(rei|rás|rá|remos|reis|rão|REI|RÁS|RÁ|REMOS|REIS|RÃO)\>  
Search mode: MS Word Wildcard.

I have been asked if it is possible to modify so that it does not flag the word “padrão”  
I appreciate your help as once again i am stuck.

Thanks, Hugh

---

<div class="post-metadata">

**Author:** ![omartin](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/omartin/32/82_2.png) [@omartin](https://forum.xbench.net/u/omartin)\
**Post date:** [August 24, 2021, 1:35pm UTC](https://forum.xbench.net/t/regex-to-find-words-in-target-that-start-with/819/4 "2021-08-24T13:35:18Z")

</div>

I would use like the following search:

Target: “\<[A-z]@(rei|rás|rá|remos|reis|rão|REI|RÁS|RÁ|REMOS|REIS|RÃO)\>” -“padrão”

Powesearch: on

Please note that segments containing the first word and also padrão will not be detected by this search.

---

<div class="post-metadata">

**Author:** ![hugh](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@hugh](https://forum.xbench.net/u/hugh)\
**Post date:** [August 24, 2021, 3:02pm UTC](https://forum.xbench.net/t/regex-to-find-words-in-target-that-start-with/819/5 "2021-08-24T15:02:24Z")

</div>

Thanks Òscar, much appreciated.

Hugh
