# How to check entities (\<&\*\*\*\*\>)

**URL:** <https://forum.xbench.net/t/how-to-check-entities/1022>\
**Category:** Technical Support\
**Created:** [May 30, 2023, 9:56am UTC](https://forum.xbench.net/t/how-to-check-entities/1022 "2023-05-30T09:56:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![syntaxtts](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@syntaxtts](https://forum.xbench.net/u/syntaxtts)\
**Post date:** [May 30, 2023, 9:56am UTC](https://forum.xbench.net/t/how-to-check-entities/1022/1 "2023-05-30T09:56:42Z")

</div>

Hi everyone,

Does anyone know how to check entities with Xbench? I mean checking if the entity (usually the ones we have are introdued by “&”) is exactly the same in the source and the target segment. I know you can customize the checklist with typical typos, but I was wondering if there is a way to filter those that don’t match.

Thanks!  
Marta

---

<div class="post-metadata">

**Author:** ![jixich93](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/jixich93/32/427_2.png) [@jixich93](https://forum.xbench.net/u/jixich93)\
**Post date:** [May 31, 2023, 2:56am UTC](https://forum.xbench.net/t/how-to-check-entities/1022/2 "2023-05-31T02:56:35Z")

</div>

Hello Marta,

I’m not sure if you are looking for below

 ![Capture](https://canada1.discourse-cdn.com/flex035/uploads/xbench/original/1X/c5d4c5583621ea539027091718363e06f8fbaabb.png)  
If yes, would you mind try this?

**PowerSearch :** off  
**Search mode :** Regular Experession  
**Source :** &.{4}  
**Target :** &.{4}

---

<div class="post-metadata">

**Author:** ![syntaxtts](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@syntaxtts](https://forum.xbench.net/u/syntaxtts)\
**Post date:** [May 31, 2023, 7:02am UTC](https://forum.xbench.net/t/how-to-check-entities/1022/3 "2023-05-31T07:02:30Z")

</div>

> [@jixich93](#):
>
> .{4}

Hi!

This does not seem to work… I would need something that recognises any chain started by &… and checks it is the same on the source and the target. Find below an example, but not all of them start always with “&prod”, this could change:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/xbench/original/1X/d61dcf61e43c60f766708e737af9c4cab40fc196.png)

---

<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:** [May 31, 2023, 7:16am UTC](https://forum.xbench.net/t/how-to-check-entities/1022/4 "2023-05-31T07:16:31Z")

</div>

Try the following search:

Source: `"(&.{4})=1"`  
Target: `-@1`  
PowerSearch: On  
Search mode: Regular Expressions

---

<div class="post-metadata">

**Author:** ![syntaxtts](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@syntaxtts](https://forum.xbench.net/u/syntaxtts)\
**Post date:** [May 31, 2023, 7:27am UTC](https://forum.xbench.net/t/how-to-check-entities/1022/5 "2023-05-31T07:27:34Z")

</div>

Thanks, omartin, but I get this error:

![image](https://canada1.discourse-cdn.com/flex035/uploads/xbench/original/1X/b1593b12395f52ae1ed21c618ce3e343b03507d7.png)

---

<div class="post-metadata">

**Author:** ![jixich93](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/jixich93/32/427_2.png) [@jixich93](https://forum.xbench.net/u/jixich93)\
**Post date:** [May 31, 2023, 7:34am UTC](https://forum.xbench.net/t/how-to-check-entities/1022/6 "2023-05-31T07:34:59Z")

</div>

Hi Marta,  
Here is my settings for your reference.  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/xbench/original/1X/56fec32f73d4cd6aa19477354f08505994101357.png)

![image](https://canada1.discourse-cdn.com/flex035/uploads/xbench/original/1X/26472f256f9512bed37bee804e6994ec17d630e3.png)

---

<div class="post-metadata">

**Author:** ![syntaxtts](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@syntaxtts](https://forum.xbench.net/u/syntaxtts)\
**Post date:** [May 31, 2023, 7:50am UTC](https://forum.xbench.net/t/how-to-check-entities/1022/7 "2023-05-31T07:50:54Z")

</div>

Thanks, I think this works too but since there are too many it is not an option to check all the segments. I don’t think this shows mismatches, maybe this is not even possible with Xbench

---

<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 1, 2023, 8:58am UTC](https://forum.xbench.net/t/how-to-check-entities/1022/8 "2023-06-01T08:58:34Z")

</div>

The following one should work better if you are trying to find variables starting with & and ending with ; and not containing semicolon:

Source: `"(<&[^;[:space:]]+;>)=1"`  
Target: `-<@1>`  
Search mode: regular expressions  
PowerSearch (Ctrl+P): enabled
