Regex for texts between #
Thread poster: Omer Shani
Omer Shani
Omer Shani  Identity Verified
Israel
Local time: 23:44
Member (2012)
English to Hebrew
+ ...
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
Russian Federation
Local time: 23:44
English to Russian
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
Israel
Local time: 23:44
Member (2012)
English to Hebrew
+ ...
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
Russian Federation
Local time: 23:44
English to Russian
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
Israel
Local time: 23:44
Member (2012)
English to Hebrew
+ ...
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 #






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