Regex for texts between #
מפרסם התגובה: Omer Shani
Omer Shani
Omer Shani  Identity Verified
ישראל
Local time: 02:40
חבר (2012)
מאנגלית לעברית
+ ...
Sep 15, 2023

Hi there, we are trying the prepare a website texts for translation, where some dynamic texts are located between #TEXT#, as
(Экономия - #ECONOMY#)
от #ОТ# до #ДО#
от #PRICE# за #MEASURE#

We've initially applied the following \[(#^}#+?)\] filter but it did not filter the texts out
Any suggestions?


 
Stepan Konev
Stepan Konev  Identity Verified
הפדרציה הרוסית
Local time: 02:40
מאנגלית לרוסית
Regex Sep 15, 2023

Try this one: #.*?#
However I don't quite understand whether you want to keep #TEXT# intact or translate it?

[Edited at 2023-09-15 18:30 GMT]


 
Omer Shani
Omer Shani  Identity Verified
ישראל
Local time: 02:40
חבר (2012)
מאנגלית לעברית
+ ...
TOPIC STARTER
Text between # Sep 16, 2023

Thank you for your reply. I want the texts between # NOT to be translated, just as texts between {{text}} and alike should not be translated

 
Stepan Konev
Stepan Konev  Identity Verified
הפדרציה הרוסית
Local time: 02:40
מאנגלית לרוסית
Regex Tagger Sep 16, 2023

Ok, then you should use the above regex to convert all instances of #TEXT# into tags. This would keep them all untranslated. Do you know how to use the Regex Tagger feature?

 
Omer Shani
Omer Shani  Identity Verified
ישראל
Local time: 02:40
חבר (2012)
מאנגלית לעברית
+ ...
TOPIC STARTER
Regex Tagger Sep 16, 2023

Thank you so much! It worked like a charm
I wonder what's the use of the regex I've tried before...


 


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


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

Regex for texts between #






Trados Business Manager Lite
Create customer quotes and invoices from within Trados Studio

Trados Business Manager Lite helps to simplify and speed up some of the daily tasks, such as invoicing and reporting, associated with running your freelance translation business.

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