International Translation Day 2017

Join ProZ.com/TV for a FREE event on September 26-27th celebrating International Translation Day! 50+ hours of content, Chat, Live Q&A & more. Join 1,000's of linguists from around the globe as ProZ.com/TV celebrates International Translation Day.

Click for Full Participation

"Insert match" missing in Studio regex syntax
Thread poster: FarkasAndras
FarkasAndras
Local time: 13:59
English to Hungarian
+ ...
Apr 20, 2011

There is a small issue I mentioned in passing a couple of times and got no info, so here it is in a thread of its own: does the Studio regex syntax have an "insert match" feature? All the documentation says is that Studio uses .NET regex syntax; .NET of course does have this feature, but the .NET expression doesn't work in Studio.

Here's how insert match works and why it's important:
You tell the regex engine to remember all, part, or several parts of the expression that is matched, and then use numbered references to insert them back in a search and replace operation. Parentheses are usually used for capturing, and \1, \2, \3 or $1, $2, $3 for insertion.
This allows you to replace, for instance,
([0-9]),([0-9]{3})
with
\1 \2
in order to change the grouping separator in numbers from a comma to a space.
There are of course a million other uses for this feature. You can use it to autoconvert dates, times etc.

So, did SDL forget to include this feature?


Direct link Reply with quote
 
Tomas Gradin  Identity Verified
Sweden
Local time: 13:59
English to Swedish
+ ...
I miss it too Nov 30, 2011

As an IT guy by profession (when not doing translations) I sourly miss this function in the search/replace of Trados Studio. Its usefulness cannot be overstated.

Direct link Reply with quote
 
FarkasAndras
Local time: 13:59
English to Hungarian
+ ...
TOPIC STARTER
lookaheads Dec 1, 2011

By now it has become evident that the feature is indeed missing from T2009. It may have been introduced in T2011, but I would be surprised.
Here's a thred on the subject:
http://www.kudoz.org/forum/sdl_trados_support/197884-using_findreplace_to_change_commas_to_periods.html

The upshot is that lookaheads work, so you have a workaround that's usable in some cases. How or why they decided to implement lookaheads but not capturing parens, I have no idea.


Direct link Reply with quote
 
Atso Puronen
Local time: 14:59
English to Finnish
I Agree! Dec 1, 2011

We've also learnt the importance and usefullness of regular expressions during the years and really miss some regex features in Studio 2009.
Clients still love to use prorietary formats in their systems which leads to having 5 different file formats used in one file. Regular expressions are a huge help in these situations, especially when creating custom file types.

With regular expressions you can really optimize your leverage when migrating from T2007 to T2009 and/or between different file types.


Direct link Reply with quote
 
Tomas Gradin  Identity Verified
Sweden
Local time: 13:59
English to Swedish
+ ...
Missing from 2011 too Dec 1, 2011

FarkasAndras wrote:

By now it has become evident that the feature is indeed missing from T2009. It may have been introduced in T2011, but I would be surprised.


I have 2011 too and I can confirm that it's missing from that too...


Direct link Reply with quote
 


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


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

"Insert match" missing in Studio regex syntax

Advanced search







SDL Trados Studio 2017 Freelance
The leading translation software used by over 250,000 translators.

SDL Trados Studio 2017 helps translators increase translation productivity whilst ensuring quality. Combining translation memory, terminology management and machine translation in one simple and easy-to-use environment.

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



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search