Regex tagger for %d & %s
Téma indítója: Omer Shani

Omer Shani  Identity Verified
Izrael
Local time: 20:40
Tag (2012 óta)
angol - héber
+ ...
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  Identity Verified
Spanyolország
Local time: 19:40
Tag (2005 óta)
angol - spanyol
+ ...
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  Identity Verified
Izrael
Local time: 20:40
Tag (2012 óta)
angol - héber
+ ...
TÉMAINDÍTÓ
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  Identity Verified
Kína
Local time: 02:40
Tag (2007 óta)
angol - kínai
+ ...
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  Identity Verified
Oroszországi Föderáció
Local time: 21:40
angol - orosz
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

Advanced search






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

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



Forums
  • All of ProZ.com
  • Terminológiai keresés
  • Munkák
  • Fórumok
  • Multiple search