# How to confirm variables are maintained

**URL:** <https://forum.xbench.net/t/how-to-confirm-variables-are-maintained/800>\
**Category:** Technical Support\
**Created:** [June 3, 2021, 6:22pm UTC](https://forum.xbench.net/t/how-to-confirm-variables-are-maintained/800 "2021-06-03T18:22:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![iwt](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/iwt/32/306_2.png) [@iwt](https://forum.xbench.net/u/iwt)\
**Post date:** [June 3, 2021, 6:22pm UTC](https://forum.xbench.net/t/how-to-confirm-variables-are-maintained/800/1 "2021-06-03T18:22:21Z")

</div>

How can we create a RegEx query to ensure that all variables are consistent with the English? For instance a linguist had a typo “%1$” and left out the “s” as it was supposed to be “%1$s”. We have various formats %1$s, %2$s, %3$s, %1$s, %1$d.

Thanks!

---

<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:** [June 4, 2021, 8:29am UTC](https://forum.xbench.net/t/how-to-confirm-variables-are-maintained/800/2 "2021-06-04T08:29:36Z")

</div>

Search for segments containing one variable:

Source: `"(\%[0-9]+\$[a-z])=1"`  
Target: `-@1`  
PowerSearch: On  
Search mode: Regular Expressions

Search for segments containing two variables:

Source: `"(\%[0-9]+\$[a-z])=1.*(\%[0-9]+\$[a-z])=2"`  
Target: `-@1 OR -@2`  
PowerSearch: On  
Search mode: Regular Expressions

---

<div class="post-metadata">

**Author:** ![Luis](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@Luis](https://forum.xbench.net/u/Luis)\
**Post date:** [December 10, 2022, 1:57pm UTC](https://forum.xbench.net/t/how-to-confirm-variables-are-maintained/800/4 "2022-12-10T13:57:56Z")

</div>

Thank you so much, @omartin!

If I were to create a checklist like this for 3 variables, how should I proceed? The following search does not work: “(%[0-9]+$[a-z])=1._(%[0-9]+$[a-z])=2._(%[0-9]+$[a-z])=3”

Thank you very much for your help!

---

<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:** [December 13, 2022, 12:38pm UTC](https://forum.xbench.net/t/how-to-confirm-variables-are-maintained/800/5 "2022-12-13T12:38:13Z")

</div>

@Luis, for 3 samples, try the following:

Source: `"(\%[0-9]+\$[a-z])=1.*(\%[0-9]+\$[a-z])=2.*(\%[0-9]+\$[a-z])=3"`  
Target: `-@1 OR -@2 OR -@3`  
PowerSearch: On  
Search mode: Regular Expressions
