Quantcast
Channel: ProZ.com Translation Forums
Viewing all articles
Browse latest Browse all 822

Find/replace thousand separators and decimal points using regex within Transit | groupings

$
0
0
Forum: Transit support
Topic: Find/replace thousand separators and decimal points using regex within Transit
Poster: Extra Consult
Post title: groupings

We normally do this by searching a single digit followed by a group of 3 digits to find thousand separators:
(\d)\.(\d{3}) for dot or (\d)\s(\d{3}) for space. Then replace by $1,$2 or $1.$2 as you need.

If you want to make sure you only get this group, you can single them out by the beginning and end-of line markers (^ and $) as such:
^(\d).(\d{3})$ - this will make sure it only find grouping of a single digit followed by a group of 3 digits that are not started or ended by another character.

Hope this helps;


Viewing all articles
Browse latest Browse all 822

Trending Articles