Regex/QA Checker 3.0
Thread poster: Lenart
Lenart
Lenart  Identity Verified
Luxembourg
Local time: 03:38
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: 03:38
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







TM-Town
Manage your TMs and Terms ... and boost your translation business

Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.

More info »
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 »