Regular Expressions (Regex)
Thread poster: hindi_linguist
hindi_linguist
hindi_linguist
India
Local time: 08:27
English to Hindi
+ ...
Apr 30, 2013

Hello,

I am looking forward to discuss with the Prozians about various regular expressions (regex). How you are using the regex. Please share the most common regex here.

Thank You,


 
FarkasAndras
FarkasAndras  Identity Verified
Local time: 04:57
English to Hungarian
+ ...
info Apr 30, 2013

First, a good resource for learning: http://www.regular-expressions.info/
The most common regex is probably s/ +/ /g I'd guess... or not. It doesn't matter much. It's very difficult to give meaninful general regex advice. If you need help creating or troubleshooting regex, post the particulars.
Note that Trados used to have a wonky regex engine without backreferences (supposedly fixed now
... See more
First, a good resource for learning: http://www.regular-expressions.info/
The most common regex is probably s/ +/ /g I'd guess... or not. It doesn't matter much. It's very difficult to give meaninful general regex advice. If you need help creating or troubleshooting regex, post the particulars.
Note that Trados used to have a wonky regex engine without backreferences (supposedly fixed now). If you're using an old release, don't be surprised if your () - \1 replacements don't work.
Collapse


 
Piotr Bienkowski
Piotr Bienkowski  Identity Verified
Poland
Local time: 04:57
English to Polish
+ ...
Various uses Apr 30, 2013

Hi Hindi Linguist,


I think I use regular expressions a lot, but I can't give you specific examples, because it all depends on what you want to achieve. Here's what I use them for:

1) Trados Studio

a) for segment filtration
b) in the Terminjector plugin regular expresions file
c) in the Find and Replace dialog
(that's two different flavors of regular expressions in one piece of software).

2) UltraEdit for preprocessing
... See more
Hi Hindi Linguist,


I think I use regular expressions a lot, but I can't give you specific examples, because it all depends on what you want to achieve. Here's what I use them for:

1) Trados Studio

a) for segment filtration
b) in the Terminjector plugin regular expresions file
c) in the Find and Replace dialog
(that's two different flavors of regular expressions in one piece of software).

2) UltraEdit for preprocessing of text files that I feed to the LF ALigner tool

3) I sometimes even use the MS Word flavor of regular expressions, the most common tasks being to replace multiple spaces with one. Here's one example:

Find: ^32{2;}
Replace with: [type a single space in this box.

Regular expressions are a powerful tool and can save you a lot of work if you know what you are doing. I read the whole owl book* once

Regards,

Piotr

* A book on regular expressions
Collapse


 
Tangopeter
Tangopeter

Local time: 04:57
English to Dutch
+ ...
Or Wrox - Beginning Regular Expressions May 1, 2013

Piotr Bienkowski wrote:

Regular expressions are a powerful tool and can save you a lot of work if you know what you are doing. I read the whole owl book* once

Regards,

Piotr

* A book on regular expressions


Or read Wrox - Beginning Regular Expressions, by Andrew Watt: another good starting point (only 771 pages)

Cheers,
Peter


 
trhanslator (X)
trhanslator (X)
Regular expressions in CafeTran May 1, 2013

Hi,

I use regular expressions a lot in CafeTran, e.g. to insert non-breaking spaces before units:

(?<=\d+) (?=(A|bar|g|Hz|kg|kHz|kW|min.|minu(ut|ten)|V|W)(\s|$))

(It's the Java flavour .)
... See more
Hi,

I use regular expressions a lot in CafeTran, e.g. to insert non-breaking spaces before units:

(?<=\d+) (?=(A|bar|g|Hz|kg|kHz|kW|min.|minu(ut|ten)|V|W)(\s|$))

(It's the Java flavour .)

Read all about it here:

http://cafetran.wikidot.com/search:site/q/regular

Cheerio,

Hans

[Edited at 2013-05-01 08:35 GMT]
Collapse


 


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


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

Regular Expressions (Regex)







CafeTran Espresso
You've never met a CAT tool this clever!

Translate faster & easier, using a sophisticated CAT tool built by a translator / developer. Accept jobs from clients who use Trados, MemoQ, Wordfast & major CAT tools. Download and start using CafeTran Espresso -- for free

Buy now! »
Anycount & Translation Office 3000
Translation Office 3000

Translation Office 3000 is an advanced accounting tool for freelance translators and small agencies. TO3000 easily and seamlessly integrates with the business life of professional freelance translators.

More info »