# How to catch missing source words in the target text

**URL:** <https://forum.xbench.net/t/how-to-catch-missing-source-words-in-the-target-text/648>\
**Category:** General Discussion\
**Created:** [August 24, 2020, 6:36pm UTC](https://forum.xbench.net/t/how-to-catch-missing-source-words-in-the-target-text/648 "2020-08-24T18:36:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sobota](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/sobota/32/236_2.png) [@sobota](https://forum.xbench.net/u/sobota)\
**Post date:** [August 24, 2020, 6:36pm UTC](https://forum.xbench.net/t/how-to-catch-missing-source-words-in-the-target-text/648/1 "2020-08-24T18:36:54Z")

</div>

Hi,

I have to make sure all words delimited by backquotes (keywords) on the source text exist in the target text. This is a sample source text:

_Either `unit_amount` or `unit_amount_decimal` must be provided inside `price_data`._

Valid characters for each keyword are a-z, 0-9 and \_ (underscore). Each sentence can have 0 to n keywords (so far, up to 6). The target text should have all keywords form the source text.

I’m trying to check that using regular expressions:

Source: “(\<`([a-z]%|[0-9]|_)*`\>)=1”  
Target: -"(@1)"

Search mode: Regular Expressions  
PowerSearch: On

But this works only with the first keyword of the sentence. In the example above, a missing _`unit_amount`_ in the target text is detected, but missing _`unit_amount_decimal`_ or _`price_data`_ are not.

Is there a way to make sure all missing keywords on the target text are detected?

Thanks!

KS

---

<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 25, 2020, 6:57am UTC](https://forum.xbench.net/t/how-to-catch-missing-source-words-in-the-target-text/648/2 "2020-08-25T06:57:15Z")

</div>

It is necessary to create entries that look for more than 1 item. For instance, the following search will detect those strings that contain at least 2 keywords in source but there is at least one missing in target.

Source: “(\<`[0-9a-z_]+`\>)=1.\*(\<`[0-9a-z_]+`\>)=2”  
Target: `-@1 OR -@2`  
Search mode: Regular Expressions  
PowerSearch: On

To detect strings with 3 items but at least one of them is missing in target, use the following one:

Source: “(\<`[0-9a-z_]+`\>)=1._(\<`[0-9a-z_]+`\>)=2._(\<`[0-9a-z_]+`\>)=3”  
Target: `-@1 OR -@2 OR -@3`  
Search mode: Regular Expressions  
PowerSearch: On

You can define up to nine variables.
