Regex expression to find superscript characters only?
Thread poster: JaneD

JaneD  Identity Verified
Local time: 18:29
Member (2009)
Swedish to English
+ ...
Jan 14, 2014

Hi all,

I'm currently working on a very fiddly translation that contains many instances of the French "e" for the English ordinal "th" (e.g. "Ve s." becomes "5th century").

Unfortunately the "e" is superscripted in the middle of a large number of tags and I can't do a standard find and replace because Trados thinks that it's not a whole word.

Does anyone know the regex code to pick out only superscript sections of a text so that I can replace "e" with "th" without having to do it all by hand?

On the same subject, does anyone know of a good resource with a comprehensive list of regex codes? I often need to use them but find it's so difficult to find out what to enter that I end up not bothering.

Thanks in advance!


Direct link Reply with quote

SDL Community  Identity Verified
United Kingdom
Local time: 18:29
Tricky... Jan 14, 2014

... because it might be the tags that set the superscript property. Or is it just that you have a particularly taggy file (pdf maybe)?

If you can share a small sample so I can see what you mean I’ll have a go? In the meantime this site is pretty useful:



Direct link Reply with quote

Bernard Lieber  Identity Verified
Local time: 18:29
English to French
+ ...
Workaround Jan 15, 2014

As Paul pointed out, it could be tricky - a few examples would be welcome. If your text is just Ve s., I would use TermInjector (OpenExchange) with the following replacement rules:

V -> 5
([eE]) -> th
s. -> century

You'll get this: Ve s. 5th century



[Edited at 2014-01-15 12:25 GMT]

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 »

Regex expression to find superscript characters only?

Advanced search

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 »
WordFinder Unlimited
For clarity and excellence

WordFinder is the leading dictionary service that gives you the words you want anywhere, anytime. Access 260+ dictionaries from the world's leading dictionary publishers in virtually any device. Find the right word anywhere, anytime - online or offline.

More info »

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