Regex for texts between #
Tópico cartaz: Omer Shani
Omer Shani
Omer Shani  Identity Verified
Israel
Local time: 22:58
Membro (2012)
inglês para hebraico
+ ...
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
Federação Russa
Local time: 22:58
inglês para russo
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: 22:58
Membro (2012)
inglês para hebraico
+ ...
CRIADOR(A) DO TÓPICO
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
Federação Russa
Local time: 22:58
inglês para russo
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: 22:58
Membro (2012)
inglês para hebraico
+ ...
CRIADOR(A) DO TÓPICO
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 Studio 2022 Freelance
The leading translation software used by over 270,000 translators.

Designed with your feedback in mind, Trados Studio 2022 delivers an unrivalled, powerful desktop and cloud solution, empowering you to work in the most efficient and cost-effective way.

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