<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Wrapping Text With Regular Expressions</title>
	<atom:link href="http://blog.macromates.com/2006/wrapping-text-with-regular-expressions/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.macromates.com/2006/wrapping-text-with-regular-expressions/</link>
	<description>TextMate and OS X</description>
	<lastBuildDate>Wed, 03 Feb 2010 16:53:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: bakaohki</title>
		<link>http://blog.macromates.com/2006/wrapping-text-with-regular-expressions/#comment-3497</link>
		<dc:creator>bakaohki</dc:creator>
		<pubDate>Thu, 27 Nov 2008 07:28:26 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/06/28/wrapping-text-with-regular-expressions/#comment-3497</guid>
		<description>&lt;p&gt;Thanks for this regexp, mate.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for this regexp, mate.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.macromates.com/2006/wrapping-text-with-regular-expressions/#comment-3393</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 16 Sep 2008 12:01:03 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/06/28/wrapping-text-with-regular-expressions/#comment-3393</guid>
		<description>&lt;p&gt;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.macromates.com/2006/wrapping-text-with-regular-expressions/#comment-3388</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 08 Sep 2008 21:28:18 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/06/28/wrapping-text-with-regular-expressions/#comment-3388</guid>
		<description>&lt;p&gt;dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Allan Odgaard</title>
		<link>http://blog.macromates.com/2006/wrapping-text-with-regular-expressions/#comment-2713</link>
		<dc:creator>Allan Odgaard</dc:creator>
		<pubDate>Sat, 01 Sep 2007 00:02:26 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/06/28/wrapping-text-with-regular-expressions/#comment-2713</guid>
		<description>&lt;p&gt;Guillaume: In ruby you would do something like below.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;def wrap_text(txt, col = 80)
  txt.gsub(/(.{1,#{col}})( +&#124;$)\n?&#124;(.{#{col-1}})-?/) do
    ($1 ? $1 : $3 + &quot;-&quot;) + &quot;\n&quot;
  end
end
&lt;/code&gt;&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>Guillaume: In ruby you would do something like below.</p>

<pre><code>def wrap_text(txt, col = 80)
  txt.gsub(/(.{1,#{col}})( +|$)\n?|(.{#{col-1}})-?/) do
    ($1 ? $1 : $3 + "-") + "\n"
  end
end
</code></pre>]]></content:encoded>
	</item>
	<item>
		<title>By: Guillaume</title>
		<link>http://blog.macromates.com/2006/wrapping-text-with-regular-expressions/#comment-2712</link>
		<dc:creator>Guillaume</dc:creator>
		<pubDate>Fri, 31 Aug 2007 12:46:47 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/06/28/wrapping-text-with-regular-expressions/#comment-2712</guid>
		<description>&lt;p&gt;Hum will it be a possibility to put &quot;-&quot; before the cut line in the case it s cuting a words.... (so not put &quot;-&quot; if it s cuting white space) ?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Guillaume.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hum will it be a possibility to put &#034;-&#034; before the cut line in the case it s cuting a words&#8230;. (so not put &#034;-&#034; if it s cuting white space) ?</p>

<p>Thanks</p>

<p>Guillaume.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jose</title>
		<link>http://blog.macromates.com/2006/wrapping-text-with-regular-expressions/#comment-2647</link>
		<dc:creator>Jose</dc:creator>
		<pubDate>Fri, 03 Aug 2007 09:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/06/28/wrapping-text-with-regular-expressions/#comment-2647</guid>
		<description>&lt;p&gt;Sorry, that was me above, if it would wrap or not.
i&#039;m looking for a way to word wrap non-fixed width fonts. because same number of w&#039;s and i&#039;s wont have the same display size, is there a way to make them look &quot;equal&quot;?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Sorry, that was me above, if it would wrap or not.
i&#039;m looking for a way to word wrap non-fixed width fonts. because same number of w&#039;s and i&#039;s wont have the same display size, is there a way to make them look &#034;equal&#034;?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.macromates.com/2006/wrapping-text-with-regular-expressions/#comment-2646</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 03 Aug 2007 09:31:43 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/06/28/wrapping-text-with-regular-expressions/#comment-2646</guid>
		<description>&lt;p&gt;wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Allan Odgaard</title>
		<link>http://blog.macromates.com/2006/wrapping-text-with-regular-expressions/#comment-2584</link>
		<dc:creator>Allan Odgaard</dc:creator>
		<pubDate>Thu, 05 Jul 2007 17:07:27 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/06/28/wrapping-text-with-regular-expressions/#comment-2584</guid>
		<description>&lt;p&gt;Tony: The &lt;code&gt;TM_COLUMNS&lt;/code&gt; variable has the number. When there is a column selection it changes to number of columns selected (i.e. width of selection), but for your command that’s probably desired.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Tony: The <code>TM_COLUMNS</code> variable has the number. When there is a column selection it changes to number of columns selected (i.e. width of selection), but for your command that’s probably desired.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://blog.macromates.com/2006/wrapping-text-with-regular-expressions/#comment-2581</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Thu, 05 Jul 2007 15:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/06/28/wrapping-text-with-regular-expressions/#comment-2581</guid>
		<description>&lt;p&gt;I&#039;m trying to write a little reflow command for TextMate and I was wondering if there&#039;s a way to get the current document&#039;s wrap column. &lt;/p&gt;

&lt;p&gt;In other words, instead of passing the column width &lt;code&gt;col = 80&lt;/code&gt;, is there a global TextMate variable that stores the stores the document&#039;s wrap column?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#039;m trying to write a little reflow command for TextMate and I was wondering if there&#039;s a way to get the current document&#039;s wrap column. </p>

<p>In other words, instead of passing the column width <code>col = 80</code>, is there a global TextMate variable that stores the stores the document&#039;s wrap column?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://blog.macromates.com/2006/wrapping-text-with-regular-expressions/#comment-2322</link>
		<dc:creator>david</dc:creator>
		<pubDate>Tue, 06 Mar 2007 20:27:04 +0000</pubDate>
		<guid isPermaLink="false">http://macromates.com/blog/archives/2006/06/28/wrapping-text-with-regular-expressions/#comment-2322</guid>
		<description>&lt;p&gt;Can you say me if this is a good &lt;a href=&quot;http://en.kerouac3001.com/regex-tutorial-8.htm&quot; rel=&quot;nofollow&quot;&gt;tutorial&lt;/a&gt;?&lt;/p&gt;

&lt;p&gt;I want to learn regexp but i don&#039;t now where i can found a good tutorial.&lt;/p&gt;

&lt;p&gt;Can you help me?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Can you say me if this is a good <a href="http://en.kerouac3001.com/regex-tutorial-8.htm" rel="nofollow">tutorial</a>?</p>

<p>I want to learn regexp but i don&#039;t now where i can found a good tutorial.</p>

<p>Can you help me?</p>]]></content:encoded>
	</item>
</channel>
</rss>
