Regex tagger for text between vertical line
Thread poster: Omer Shani
Omer Shani
Omer Shani  Identity Verified
Israel
Local time: 07:15
Member (2012)
English to Hebrew
+ ...
Jan 18, 2018

Hi guys,
I have a software text, and I need to apply a regex rule for a text between vertical line, for example:

|action| |change_amount| |change_type| below median price of |competitors|
|action| |change_amount| |change_type| above |competitor|

I'd appreciate if you can assist me with the regex tagger rule, which will define this requirement so it won't be translated

Thanks a lot in advance

Omer


 
Stepan Konev
Stepan Konev  Identity Verified
Russian Federation
Local time: 07:15
English to Russian
\|(.*?)\| Empty Jan 19, 2018

Try this:

Regex: \|(.*?)\|
Tag type: Empty
Check 'Required' if you want memoQ to alert you when you miss such tag in the target.
Display text: $0
$0 here means that each tag will contain the original text (<action>, <change_amount>, etc.).
Alternatively, instead of $0 you can type any other description, e.g. 'untranslatable'. In this case, all such tags will appear the same (<untranslatable>)

[Edited at 2018-01-19 11:34 GMT]


 
Omer Shani
Omer Shani  Identity Verified
Israel
Local time: 07:15
Member (2012)
English to Hebrew
+ ...
TOPIC STARTER
Thanks Stepan :) Jan 19, 2018

Thank you Stepan for your elaborated response!

Omer Shani


 
Stepan Konev
Stepan Konev  Identity Verified
Russian Federation
Local time: 07:15
English to Russian
Regex amended Jan 19, 2018

Had t o amend regex. This one works:
\|(.*?)\|

just tested


 


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


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

Regex tagger for text between vertical line






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 »
Anycount & Translation Office 3000
Translation Office 3000

Translation Office 3000 is an advanced accounting tool for freelance translators and small agencies. TO3000 easily and seamlessly integrates with the business life of professional freelance translators.

More info »