Regex for texts between #
ناشر الموضوع: Omer Shani
Omer Shani
Omer Shani  Identity Verified
إسرائيل
Local time: 16:18
عضو (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: 16:18
أنجليزي إلى روسي
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: 16:18
عضو (2012)
أنجليزي إلى عبري
+ ...
بادئ الموضوع
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: 16:18
أنجليزي إلى روسي
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: 16:18
عضو (2012)
أنجليزي إلى عبري
+ ...
بادئ الموضوع
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 #






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