# Checklist for parenthesis

**URL:** <https://forum.xbench.net/t/checklist-for-parenthesis/791>\
**Category:** General Discussion\
**Created:** [May 21, 2021, 12:31pm UTC](https://forum.xbench.net/t/checklist-for-parenthesis/791 "2021-05-21T12:31:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![scavicchio](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/scavicchio/32/482_2.png) [@scavicchio](https://forum.xbench.net/u/scavicchio)\
**Post date:** [May 21, 2021, 12:31pm UTC](https://forum.xbench.net/t/checklist-for-parenthesis/791/1 "2021-05-21T12:31:17Z")

</div>

Hi folks!

I have found an old topic about this, but I could not replicate the results in my work, so I have to ask it again, sorry.

I would like to create a checklist to find **any amount** of missing pairs of parenthesis in target. So far I am using this one:  
Source: “(._)"  
Target: -"(._)”  
Power Search: on  
Mode: Regex case sensitive

It works well when there are no parenthesis in target at all, but I must search for cases where the target has not the same amount of pairs of parenthesis as the source.

Thanks in advance,  
Sílvia

---

<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 21, 2021, 1:10pm UTC](https://forum.xbench.net/t/checklist-for-parenthesis/791/2 "2021-05-21T13:10:44Z")

</div>

Hi Silvia,

This search should find mismatches of segments that contain only one parenthesis.

Source: `"\([^\)]+\)"`  
Target: `-"\([^\)]+\)"`  
Search mode: Regex  
PowerSearch: on

To detect segments with two parentheses in source you would use the following one:

Source: `"\([^\)]+\)\(*\([^\)]+\)"`  
Target: `-"\([^\)]+\)\(*\([^\)]+\)"`  
Search mode: Regex  
PowerSearch: on

Best regards,  
Oscar.

---

<div class="post-metadata">

**Author:** ![scavicchio](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/scavicchio/32/482_2.png) [@scavicchio](https://forum.xbench.net/u/scavicchio)\
**Post date:** [May 21, 2021, 2:11pm UTC](https://forum.xbench.net/t/checklist-for-parenthesis/791/3 "2021-05-21T14:11:53Z")

</div>

Thanks, Oscar.

One more question: your second expression will not work if source has three or more pair of parentheses but target has less than that, right?

Best regards,  
Sílvia

---

<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 21, 2021, 3:07pm UTC](https://forum.xbench.net/t/checklist-for-parenthesis/791/4 "2021-05-21T15:07:15Z")

</div>

You need to create a checklist entry for each number of parentheses in source:

Segments with 3 parentheses:

Source: `"\([^\)]+\)\(*\([^\)]+\)\(*\([^\)]+\)"`  
Target: `-"\([^\)]+\)\(*\([^\)]+\)\(*\([^\)]+\)"`  
Search mode: Regex  
PowerSearch: on

Segments with 4 parentheses:

Source: `"\([^\)]+\)\(*\([^\)]+\)\(*\([^\)]+\)\(*\([^\)]+\)"`  
Target: `-"\([^\)]+\)\(*\([^\)]+\)\(*\([^\)]+\)\(*\([^\)]+\)"`  
Search mode: Regex  
PowerSearch: on

and so on

---

<div class="post-metadata">

**Author:** ![scavicchio](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/scavicchio/32/482_2.png) [@scavicchio](https://forum.xbench.net/u/scavicchio)\
**Post date:** [May 21, 2021, 3:19pm UTC](https://forum.xbench.net/t/checklist-for-parenthesis/791/5 "2021-05-21T15:19:29Z")

</div>

That’s what I thought, Oscar. Thank you very much!

Un abrazo,  
Sílvia
