I believe this will work:
Find (?<=[\.\d])0+(?=\s) and replace with nothing
This also works
Not with 150.00 and NOT with ID CC: apparently, bug with \> (already encountered about another recent post)!
Obi-wan Kenobi wrote:
Oh yes. Forgot the case where you need to delete the decimal point.
There's a major problem with these expressions, though, if there isn't a decimal point in the number. It truncates any whole number ending in 0, too.
I'm not sure it's possible to do this in a single step if there are numbers with trailing zeros and no decimal part.
You could search for \.\d+ first and assign a character style, then run the previous expression with the scope limited to the character style.
Well I can't debug every version of InDesign - it works in CS5.5
the \> picks up the decimal point following a 0 as the end of a word, which is why I used \s.
Right! In 3 steps (text in black)
1/ Exclusion if no decimal part:
Replace: color X
Search Format: color black
Search Format: color X
Replace Format: color black
Seems to work. To be validated!
It's is working fine, Thanks
This is working fine. But thanks for your help