Studio 2019 $ + number substitution

In Studio 2019, the $ + number substitution in a regular expression find and replace doesn't work. It worked fine in the previous versions of Studio.

Example: I have a simple regular expression I use when I want to fix the incorrect placement of the Euro currency symbol and the order of magnitude in currency amounts. For example, to change 150 K € to €150K or 20 M € to €20M, I enter the following:

Find: ([0-9]{1,3}) ([A-Z]) €

Replace with: €$1$2

and I check "Use regular expressions".

Before upgrading to Studio 2019, this worked great.

Now when I do this, I get the result: €$1$2

Yes, I am checking "Use regular expressions". But it's not working.

Can someone help with this? I have a number of such regular expression fixes I apply throughout a document to fix the typical pre-translation errors in Studio. Now I have to fix every instance of such errors individually, and it's very time-consuming.

Thanks!

Parents
  • Hello Irene,
    looks like the "Find" function uses Regex and the "Replace" function does not. If this so, it is surely unintentional since the "Replace" field has a Regex syntax check built in...
    I also found that when I choose "Selection" it will not find the string although it is selected, but if I choose "Current Document" it will (Regex both cases).
    Looks like a bug to me. Maybe someone from SDL can pitch in?

    Having said this, there is a plugin called SdlXliff Toolkit which reportedly can do Regex search/replace. I just tried in vain to install it, but there are many people who use it. This is surely what I would try if I was in your situation.
    Daniel

Reply
  • Hello Irene,
    looks like the "Find" function uses Regex and the "Replace" function does not. If this so, it is surely unintentional since the "Replace" field has a Regex syntax check built in...
    I also found that when I choose "Selection" it will not find the string although it is selected, but if I choose "Current Document" it will (Regex both cases).
    Looks like a bug to me. Maybe someone from SDL can pitch in?

    Having said this, there is a plugin called SdlXliff Toolkit which reportedly can do Regex search/replace. I just tried in vain to install it, but there are many people who use it. This is surely what I would try if I was in your situation.
    Daniel

Children