RegEx requested for:
Upper case sequence followed by lower case without any white space between them (see example in target).
Background:
Random copy and paste issue.
Example:
Source:
This DTC is stored when a malfunction occurs.
Target:
ELECTRIC EGR CONTROL VALVE ASSEMBLYDieser DTC wird gespeichert, wenn eine Funktionsstörung vorliegt.
Thanks in advance.
Susanne.
Hi Susanne,
The following regular expression should display all segments that contain 2 or more Upper case followed by 2 or more lowercase without any whitespaces between them.
Target: <[A-Z]{2,}[a-z]{2,}>
Search mode: Regular Expressions
Case Sensitive checkbox: on.
Depending on the target language, it is necessary to add special characters such as ß, ä, etc. between square brackets.
For instance, in German it would be <[A-ZßÄËÏÖÜ]{2,}[a-zßäëïöü]{2,}>
.
Best regards,
Oscar.
1 Like
Hi Oscar,
It works like a charm! Thanks a lot for your speedy reply.
Your help is much appreciated.
With kind regards,
Susanne.
Hi again,
This is a follow up:
RegEx requested for:
Upper case sequence including hyphens followed by lower case without any white space between them (see example in target).
Background:
Random copy and paste issue.
Source:
The door control receiver receives a signal.
Target:
Smart-key-ECU-EinheitDer Türsteuerungsempfänger empfängt ein Signal.
Thanks in advance.
Susanne.
The following search should find segments like your sample:
Target term or Source term: "[A-Z][a-z]+(\-[:letter:]+){2,}"
Search Mode: Regular Expressions
Case-sensitive checkbox: On.
PowerSearch: On. (Press Ctrl+P to run the search).
This search will find Smart-key-ECU-Einheit but not Smart-key to avoid displaying compound words.
Thanks a lot! It does find my term, but it also gives too many false hits like the following:
A way to discard false alarms would be to search this type of string followed by a word starting with an uppercase.
Target term or Source term: "[A-Z][a-z]+(\-[:letter:]+){2,}[A-Z][a-z]+>"
Search Mode: Regular Expressions
Case-sensitive checkbox: On.
PowerSearch: On. (Press Ctrl+P to run the search).
1 Like