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

Omer Shani
Israel
Local time: 09:06
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


Direct link Reply with quote
 

Stepan Konev  Identity Verified
Russian Federation
Local time: 09:06
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]


Direct link Reply with quote
 

Omer Shani
Israel
Local time: 09:06
Member (2012)
TOPIC STARTER
Thanks Stepan :) Jan 19

Thank you Stepan for your elaborated response!

Omer Shani


Direct link Reply with quote
 

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

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

just tested


Direct link Reply with quote
 


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






Protemos translation business management system
Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!

The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.

More info »
SDL Trados Studio 2017 only €415 / $495
Get the cheapest prices for SDL Trados Studio 2017 on ProZ.com

Join this translator’s group buy brought to you by ProZ.com and buy SDL Trados Studio 2017 Freelance for only €415 / $495 / £325 / ¥60,000 You will also receive FREE access to our getting started eLearning program!

More info »



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