Regex/QA Checker 3.0
Thread poster: Lenart
Lenart
Lenart  Identity Verified
Luxembourg
Local time: 18:52
Oct 1, 2017

Hello,

I would like Regex to show me error every time the source contains word „ ce “ except when it contains words „que ce soit“ and „en ce qui concerne“.

I would appreciate your help,

thank you!


 
jkmsff
jkmsff
Local time: 18:52
One possible regex ... Oct 7, 2017

Maybe this regex helps. It uses negative lookbehind and negative lookahead to exclude certain words words before and after "ce".

It's not perfect though -- it won't match "ce" in "que ce qui concerne" and "en ce soit", but my limited French language skills tell me these phrases aren't likely to occur.

(?<!(en))(?<!(que)) ce (?!(qui concerne))(?!(soit))

[Edited at 2017-10-07 11:31 GMT]


 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Regex/QA Checker 3.0







Trados Studio 2022 Freelance
The leading translation software used by over 270,000 translators.

Designed with your feedback in mind, Trados Studio 2022 delivers an unrivalled, powerful desktop and cloud solution, empowering you to work in the most efficient and cost-effective way.

More info »
Trados Business Manager Lite
Create customer quotes and invoices from within Trados Studio

Trados Business Manager Lite helps to simplify and speed up some of the daily tasks, such as invoicing and reporting, associated with running your freelance translation business.

More info »