Regex tagger for text between vertical line
Thread poster: Omer Shani

Omer Shani
Israel
Local time: 15:09
Member (2012)
Jan 18

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  Identity Verified
Russian Federation
Local time: 15:09
English to Russian
\|(.*?)\| Empty Jan 19

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
Israel
Local time: 15:09
Member (2012)
TOPIC STARTER
Thanks Stepan :) Jan 19

Thank you Stepan for your elaborated response!

Omer Shani


 

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

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

Advanced search






memoQ translator pro
Kilgray's memoQ is the world's fastest developing integrated localization & translation environment rendering you more productive and efficient.

With our advanced file filters, unlimited language and advanced file support, memoQ translator pro has been designed for translators and reviewers who work on their own, with other translators or in team-based translation projects.

More info »
SDL MultiTerm 2019
Guarantee a unified, consistent and high-quality translation with terminology software by the industry leaders.

SDL MultiTerm 2019 allows translators to create one central location to store and manage multilingual terminology, and with SDL MultiTerm Extract 2019 you can automatically create term lists from your existing documentation to save time.

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search