[TxMt] Re: Date format conversion bundle?

Hans-Jörg Bibiko bibiko at eva.mpg.de
Fri Mar 26 20:17:05 UTC 2010


On Mar 26, 2010, at 9:06 PM, Kai Vermehr wrote:

> Thanks a lot! I don't want to take advantage of you, but if you had the time, how would you convert number formatting from 1.234,56 to 1,234.56 with regex and tmcommand?

Hmm, if the format is fix you can try:


perl -pe 's/,(?=\d{2}$)/./g;s/\.(?!\d{2}$)/,/g'


--Hans


More information about the textmate mailing list