<meta charset="utf-8">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 <meta charset="utf-8">1,234.56 with regex and tmcommand?<div>
<br></div><div>Thanks again! <div><br></div><div><br><div class="gmail_quote">On Fri, Mar 26, 2010 at 11:21 AM, Hans-Jörg Bibiko <span dir="ltr"><<a href="mailto:bibiko@eva.mpg.de">bibiko@eva.mpg.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
On Mar 26, 2010, at 6:53 PM, Rob McBroom wrote:<br>
<br>
> On Mar 26, 2010, at 1:39 PM, c6y wrote:<br>
><br>
>> Hi, does anyone know of a date format conversion bundle? I need to change<br>
>> dates from 31.12.2009 to 2009-12-31<br>
><br>
> I don’t know of one, but you could make a command pretty quickly using PHP. I suggest PHP because of its awesome `strtotime` function.<br>
><br>
> <a href="http://us.php.net/manual/en/function.strtotime.php" target="_blank">http://us.php.net/manual/en/function.strtotime.php</a><br>
<br>
</div>or via various regular expressions<br>
<br>
eg<br>
create a tmcommand with input selection and this script:<br>
<br>
perl -pe 's/([0-3]?\d)\.([01]?\d)\.(\d{2,4})/$3-$2-$1/'<br>
<br>
or similar<br>
<font color="#888888"><br>
--Hans<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Kai Vermehr<br>eBoy Arts Inc.<br>5658 Westhaven Road<br>West Vancouver BC<br>V7W 1T8 Canada<br>mobile +1 (778) 822 4498<br><a href="mailto:k@eboy.com">k@eboy.com</a><br>
</div></div>