Reply To: GREP style, i want to add "," in numbers 3454342? 3,454,342

Home Page / Forums / General InDesign Topics (CLOSED) / GREP style, i want to add "," in numbers 3454342? 3,454,342 / Reply To: GREP style, i want to add "," in numbers 3454342? 3,454,342

#85786

In Germany we want to have sometimes 10,000 , but not 1000

In this case you could write: (?<=\d)\d(?=\d{3})|\d(?=(\d{3}){2,})

Separate telefonnumbers in pairs of two: \d(?=(\d{2})+)

If there is a separator between the numbers, e.g. a “/”, sometimes this can be a solution: \d(?=(\d{2})+)|\d(?=/)|/

Hope this is helpful too :)

Kai

This article was last modified on June 15, 2016

Comments (0)

Loading comments...