# How to check 1999, 2021, 2022 without 年 in target?

**URL:** <https://forum.xbench.net/t/how-to-check-1999-2021-2022-without-in-target/957>\
**Category:** Technical Support\
**Created:** [November 27, 2022, 3:57am UTC](https://forum.xbench.net/t/how-to-check-1999-2021-2022-without-in-target/957 "2022-11-27T03:57:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@Bob](https://forum.xbench.net/u/Bob)\
**Post date:** [November 27, 2022, 3:57am UTC](https://forum.xbench.net/t/how-to-check-1999-2021-2022-without-in-target/957/1 "2022-11-27T03:57:57Z")

</div>

In source, there are three segments, one segment is 1999, one is 2021 and one is 2022, but in Target language (In Chinese), the word “年” should be added after 1999, 2021 and 2022,  
ie,  
Source Target  
1999 1999 年  
2021 2021 年  
2022 2022 年

But sometimes, duo to pre-translation or omission, these segments in Target were not added 年 after the year.  
ie.  
Source Target  
1999 1999  
2021 2021  
2022 2022

Could you help solve the problem: How to check 1999, 2021, 2022 without 年 in target?

---

<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:** [November 28, 2022, 11:40am UTC](https://forum.xbench.net/t/how-to-check-1999-2021-2022-without-in-target/957/2 "2022-11-28T11:40:29Z")

</div>

The following search should help you find all numbers between 1000 and 2999 that do not have the word 年 after that number in target:

Source: `"(<[12][0-9]{3}>)=1"`  
Target: `-"<@1> 年"`  
PowerSearch: On  
Search mode: Regular Expressions

---

<div class="post-metadata">

**Author:** ![Bob](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@Bob](https://forum.xbench.net/u/Bob)\
**Post date:** [November 29, 2022, 12:36am UTC](https://forum.xbench.net/t/how-to-check-1999-2021-2022-without-in-target/957/3 "2022-11-29T00:36:02Z")

</div>

It worked perfectly. Your regular expression is so simple that it is worth learning.

Thank you very much.

I used this Regex to find missing 年, but it was not so good.

Source: “(^(17|18|19|20)\*)=1”  
Target: “@1” - \年  
PowerSearch: On  
Search mode: Regular Expressions.
