This document provides information on using wildcards and regular expressions in Word for document processing tasks like preparing files for translation. It discusses common wildcard characters like ? and * and how they are used in regular expressions to match patterns of text. Examples are provided for finding and replacing text using wildcards. The document also addresses counting non-translatable elements like numbers and provides links for further information.
2. Wildcards & Regular expressionsTranslateMediaLondon | New York | Paris | Munich | Hong KongAccurate. Punctual. Confidential.
3. This is a guide for the use of regexes in Word. Wildcards seem different according to the program you use them in (Google, Memoq,)Memoq has its own regex search feature (Auto-translatables window), but better use Word (easier + live double-checking)TranslateMediaLondon | New York | Paris | Munich | Hong KongAccurate. Punctual. Confidential.
11. What?Wildcard= a keyboard character that you can use to represent one or many characters.example: * in *.docRegular expression= a combination of literal and wildcard characters that you use to match patterns of text. example: media[0-9]{3} matches media309, media110, etcTranslateMediaLondon | New York | Paris | Munich | Hong KongAccurate. Punctual. Confidential.
34. Copy-paste in WORDNote: the search option does not support wildcards in the Notepad (TXT files).TranslateMediaLondon | New York | Paris | Munich | Hong KongAccurate. Punctual. Confidential.
35. Find and Replace windowCtrl + HClick More > > buttonTranslateMediaLondon | New York | Paris | Munich | Hong KongAccurate. Punctual. Confidential.
36. Find and Replace windowTick Use wildcards boxEnter a space in the Replace with fieldTranslateMediaLondon | New York | Paris | Munich | Hong KongAccurate. Punctual. Confidential.
37. Deleting all numbers?-> [0-9]BUT:References made of numbers + capital letters will be left. -> [A-Z] ?NO! For some titles are written with an upper case.PLUS: Translators could argue about dates, values, etc
39. Word count in MemoqTrados-like word count does not count numbers (isolated sequences of numbers)TranslateMediaLondon | New York | Paris | Munich | Hong KongAccurate. Punctual. Confidential.
42. [A-Z]{4}[0-9]{2,3}[A-Z]{2}[0-9]([A-Z]{4})([0-9]{2,3})([A-Z]{2})[0-9] -> You can add brackets to make it clearer. They will not be taken into account in the search. But you cannot add spaces, for they are searched for as characters. If you want to search for brackets, you have to put them between square brackets.TranslateMediaLondon | New York | Paris | Munich | Hong KongAccurate. Punctual. Confidential.
45. When creating a regex, make sure it will not delete anything you need to count
46. Still a rough count, unless you spend time going into details (counted as repetitions then)TranslateMediaLondon | New York | Paris | Munich | Hong KongAccurate. Punctual. Confidential.