AutoText / Variables --- wildcards / regular expressions / ?
Thread poster: Florian Betz

Florian Betz
Local time: 06:56
English to German
+ ...
Aug 31, 2014

I've been working on a big-ish project that has the same type of 'code' appearing over and over again and Studio (2011) wants me to type it in manually every time. I'm looking for a way to make my life easier here, because the codes are all pretty similarly constructed: it's something like "NAME6.000.1234" with only the underlined part changing every time.

I've tried adding "NAME6.000." to the AutoText feature, but
a) I still have to type NAME (the first 4 characters) before that is triggered, saving me relatively little time (why is it 4? entries from the Termbase trigger after 2 characters..), and
b) of course that still leaves me to type in the variable part at the end (the numbers that I was hoping to avoid in the first place).

So, after some more research I found the Variables list, which as far as I can tell, doesn't help me either, because it apparently only works when the whole variable can be matched, so adding "NAME6.000." will simply not match anything in my source text, thus not giving me any placeables to work with.

So I was wondering if there was any way of getting the variable list (or AutoText for that matter) to accept wildcards or even regular expressions.
Or maybe there's some other way of getting Studio to accept codes that aren't entirely numbers as placeables, or make them easier to handle somehow? I mean, I suppose I could edit the entire source text

I've found something called TermInjector - but I can't test it right now, because the site won't let me login at the moment ( ).


Bernard Lieber  Identity Verified
Local time: 06:56
English to French
+ ...
Terminjector... Aug 31, 2014

is the right way to go - I've got it and will forward it to you, just drop me a e-mail you can try it - this is a replacement rule works like a charm:

([A-Z]+)([0\.-9]+)\.([0-9]+) \1\2.\3 = save as UTF8




Florian Betz
Local time: 06:56
English to German
+ ...
Thank you Sep 1, 2014

That was kind of you to offer, Bernard, but yesterday's login problem is resolved now and I was able to download Terminjector from the App Store.
Will report back once I've had time to try it out.

//edit: works like a charm!

I made my own rule:
(.+)NAME([0-9])\.([0-9][0-9][0-9])\.([0-9][0-9][0-9][0-9])(.+) NAME\2.\3.\4

[Edited at 2014-09-01 11:35 GMT]


To report site rules violations or get help, contact a site moderator:

You can also contact site staff by submitting a support request »

AutoText / Variables --- wildcards / regular expressions / ?

Advanced search

PerfectIt consistency checker
Faster Checking, Greater Accuracy

PerfectIt helps deliver error-free documents. It improves consistency, ensures quality and helps to enforce style guides. It’s a powerful tool for pro users, and comes with the assurance of a 30-day money back guarantee.

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

  • All of
  • Term search
  • Jobs
  • Forums
  • Multiple search