# Detect only the segments without the parentheses

**URL:** <https://forum.xbench.net/t/detect-only-the-segments-without-the-parentheses/994>\
**Category:** Technical Support\
**Created:** [March 22, 2023, 10:24am UTC](https://forum.xbench.net/t/detect-only-the-segments-without-the-parentheses/994 "2023-03-22T10:24:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nari](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@nari](https://forum.xbench.net/u/nari)\
**Post date:** [March 22, 2023, 10:24am UTC](https://forum.xbench.net/t/detect-only-the-segments-without-the-parentheses/994/1 "2023-03-22T10:24:59Z")

</div>

Is it possible to detect only the segments without the parentheses? I attempted to use this Regex but it didn’t work.

Source: “(([^()]+))”  
Target: -@1

 ![regex](https://canada1.discourse-cdn.com/flex035/uploads/xbench/original/1X/97b5570755a11bbc7ac11b4264f7860f6b4da4ae.png)  
 ![error](https://canada1.discourse-cdn.com/flex035/uploads/xbench/original/1X/5f22b79f438c9fe125f06626e91dcec515aa2c61.png)

Would you help me, please?  
Thanks a lot!

Nari

---

<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:** [March 26, 2023, 10:51pm UTC](https://forum.xbench.net/t/detect-only-the-segments-without-the-parentheses/994/2 "2023-03-26T22:51:38Z")

</div>

Hi!

I am not expert in Regex but I think when you want to use “-@1” in one field you should use “=1” in the other field.

But when I want to look for missing parentheses in target, I use this:  
Source: “\(.\*\)”  
Target: -“\(.\*\)”  
Search Mode: Regex

 ![Sem título](https://canada1.discourse-cdn.com/flex035/uploads/xbench/original/1X/babe9d298521347ca4452afabdded3abc2271889.png)

If you want to look for missing parentheses in source, just switch the codes.

I hope this can help you.

Best regards,  
Sílvia

---

<div class="post-metadata">

**Author:** ![nari](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@nari](https://forum.xbench.net/u/nari)\
**Post date:** [March 27, 2023, 1:10am UTC](https://forum.xbench.net/t/detect-only-the-segments-without-the-parentheses/994/3 "2023-03-27T01:10:42Z")

</div>

Dear Sílvia,

It’s successful!  
Thank you for responding.

Best regards,  
Nari
