The Trados cloud platform will be undergoing maintenance on Saturday, 9th May 2026 between 05:00 to 17:00 UTC. During this time, you will not be able to log in to the Trados platform.

Problem in adding a specific number format to regular expressions

Hi everybody,

I'm working on a project that has several numbers that end with a "x" right after them (for example, 6x, 25x, 120x and so on). I need to translate them without this "x" attached, so I basically just need the numbers themselves. Doing it it's fine, but every time the "Verify" keeps warning me that some strings have errors, when it's actually just about that missing "x" in the end of the numbers.

I tried to create a regex through Project Settings, but as the feature is still new to me I'm having some trouble. Could anybody give me a tip here? What exactly should I enter (in RegEx's source and target fields) to the QA just check the numbers themselves?

Kind regards

Parents Reply
  • Hi Marcus,

    I've had a bit of time now to look at this. If you want to exclude the warnings for numbers with four or more digits, you can try the following instead of the original rule:

    Regex source: (\d{1,3})x

    Regex target: $1

    Condition: Grouped search expression – report if source matches but not the target.

    This will only match numbers that have up to three digits, thus excluding longer numbers.

    I was trying to think of the best way to check the numbers with thousands separators, to warn you if the numbers were different in source and target. I thought the easiest thing would be to do the opposite, and actually warn you if the numbers were identical, i.e., when the thousands separator was missing in the target, but I couldn't get it to work. 

    This is what I had:

    Regex source: (\d{4,})x

    Regex target: $1

    Condition: Grouped search expression – report if source and target matches.

    Hopefully someone will see what I'm missing and give you the right regex to achieve this!

Children