[TxMt] Re: Date format conversion bundle?

Kai Vermehr k at eboy.com
Sun Mar 28 04:12:53 UTC 2010


Wow, thanks so much, it works flawlessly!! :)


On Fri, Mar 26, 2010 at 1:17 PM, Hans-Jörg Bibiko <bibiko at eva.mpg.de> wrote:

>
> 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
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>



-- 
Kai Vermehr
eBoy Arts Inc.
5658 Westhaven Road
West Vancouver BC
V7W 1T8 Canada
mobile +1 (778) 822 4498
k at eboy.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20100327/ea26807c/attachment.html>


More information about the textmate mailing list