Regex tagger for %d & %s
Thread poster: Omer Shani
Omer Shani
Omer Shani  Identity Verified
Israel
Local time: 13:01
Member (2012)
English to Hebrew
+ ...
Oct 28, 2020

Hi There
I have several software files to import with several regex characters as curly brackets etc.
Two of them are %d & %s (i.e: %d days, %s ago, etc)

Is there a regex tagger we can use to filter those out?

Thanks in advance


 
Tomás Cano Binder, BA, CT
Tomás Cano Binder, BA, CT  Identity Verified
Spain
Local time: 12:01
Member (2005)
English to Spanish
+ ...
Much easier Oct 28, 2020

You can try the different standard filters available for this purpose in memoQ.

When you import the files, use the Import with Options feature, choose the files, and then choose the filter select all of them in the Document Import Options dialog, choose Change Filter & Configuration. In the Document Import Settings dialog box, you have a list of possible filters at the top. If any of them matches the nature of your files, you can try with those. Otherwise
... See more
You can try the different standard filters available for this purpose in memoQ.

When you import the files, use the Import with Options feature, choose the files, and then choose the filter select all of them in the Document Import Options dialog, choose Change Filter & Configuration. In the Document Import Settings dialog box, you have a list of possible filters at the top. If any of them matches the nature of your files, you can try with those. Otherwise, try with the RegEx filter, which usually imports nicely.

Good luck!
Collapse


 
Omer Shani
Omer Shani  Identity Verified
Israel
Local time: 13:01
Member (2012)
English to Hebrew
+ ...
TOPIC STARTER
Regex tagger for %d & %s Oct 28, 2020

Hi Tomás

Thank you for your swift reply!

We are familiar with the import process as you've been describing and we some save cascading filters on our own.

But when we try to set a new one for those, they all come up too "greedy" and do not apply solely on the %d and the %s variables.

I'll be happy to learn if you can share a regex for those so we can apply in memoQ

BR

Omer


 
Shouguang Cao
Shouguang Cao  Identity Verified
China
Local time: 19:01
English to Chinese
+ ...
Not sure of the question Oct 29, 2020

I know it's sometimes hard to ask a technical question.

If you want to match % and then follow with one lower case letter, you could do
%[a-z]

or

%\w for any letter.


Omer Shani
 
Stepan Konev
Stepan Konev  Identity Verified
Russian Federation
Local time: 14:01
English to Russian
Minor addition Oct 29, 2020

If you have some variables like %dsdsds, or %dd, or %ss, etc. you can use %\w\b where \b denotes the end of a word. This will limit your regex search to a 'word' consisting of % and any 1 letter only.

[Edited at 2020-10-29 19:28 GMT]


Omer Shani
 


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 %d & %s






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