# Straight quotes should be left as in source

**URL:** <https://forum.xbench.net/t/straight-quotes-should-be-left-as-in-source/415>\
**Category:** Technical Support\
**Created:** [November 27, 2018, 6:15pm UTC](https://forum.xbench.net/t/straight-quotes-should-be-left-as-in-source/415 "2018-11-27T18:15:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sel](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@sel](https://forum.xbench.net/u/sel)\
**Post date:** [November 27, 2018, 6:15pm UTC](https://forum.xbench.net/t/straight-quotes-should-be-left-as-in-source/415/1 "2018-11-27T18:15:17Z")

</div>

Hi guys, I need to create a check to make sure that every time straight quotes are in source --\> ", straight quotes are in target as well (not curly for example).  
Can you please 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:** [November 28, 2018, 8:48am UTC](https://forum.xbench.net/t/straight-quotes-should-be-left-as-in-source/415/2 "2018-11-28T08:48:19Z")

</div>

Hi,

The following search will find segments that contain text between straight quotes but there is not any text between straight quotes:

Source: `"""" """[^""]+""[^""]"`  
Target: `-"""[^""]+"""`  
Powersearch: On.  
Search mode: Regular Expressions.  
Normalize Native Chars: Disabled.

This second search should find all segments that contain straight quotes in source but do not contain any in target.

Source: `"""" "([^""]*""[^""]*)+"`  
Target: `"^[^""]+$"`  
Powersearch: On.  
Search mode: Regular Expressions.  
Normalize Native Chars: Disabled.

Best regards,  
Oscar.

---

<div class="post-metadata">

**Author:** ![sel](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@sel](https://forum.xbench.net/u/sel)\
**Post date:** [November 28, 2018, 12:41pm UTC](https://forum.xbench.net/t/straight-quotes-should-be-left-as-in-source/415/3 "2018-11-28T12:41:35Z")

</div>

Hi Oscar,

sorry but I did some tests and this is not working on my side. Can you please double check?

---

<div class="post-metadata">

**Author:** ![Manuel](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/manuel/32/163_2.png) [@Manuel](https://forum.xbench.net/u/Manuel)\
**Post date:** [December 14, 2018, 6:13pm UTC](https://forum.xbench.net/t/straight-quotes-should-be-left-as-in-source/415/4 "2018-12-14T18:13:46Z")

</div>

Hello sel,

I think a possible solution to your problem would be the following:

`Source:` \x22  
`Target:` -\x22  
Powersearch: On  
Search mode: Regular Expressions.

This way, Xbench would only search for all strings containing the double straight quotes character in source and NOT said character in target.

Disclaimer 1: This check would not detect if quotes are unpaired.  
Disclaimer 2: If your `Ongoing translation` files are TXT or Excel files, this check may not work properly if the double straight quotes character is at the beginning, at the end (or both) of a string/cell.

On every other case scenario, this should work.

Hope it helps.

Regards,

Manuel
