<?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: using negate in ruby regex</title>
	<atom:link href="http://disjointthoughts.com/2007/03/02/using-negate-in-ruby-regex/feed/" rel="self" type="application/rss+xml" />
	<link>http://disjointthoughts.com/2007/03/02/using-negate-in-ruby-regex/</link>
	<description></description>
	<lastBuildDate>Fri, 06 Jan 2012 14:29:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Sri</title>
		<link>http://disjointthoughts.com/2007/03/02/using-negate-in-ruby-regex/comment-page-1/#comment-10033</link>
		<dc:creator>Sri</dc:creator>
		<pubDate>Thu, 01 Oct 2009 14:41:58 +0000</pubDate>
		<guid isPermaLink="false">http://disjointthoughts.com/?p=143#comment-10033</guid>
		<description>Hi,
The post is misleading. The [^string] is not working as a negate in ruby 1.8.6. It&#039;s simply searching for a string with a &#039;^&#039; (literal).</description>
		<content:encoded><![CDATA[<p>Hi,<br />
The post is misleading. The [^string] is not working as a negate in ruby 1.8.6. It&#8217;s simply searching for a string with a &#8216;^&#8217; (literal).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://disjointthoughts.com/2007/03/02/using-negate-in-ruby-regex/comment-page-1/#comment-311</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Mon, 30 Apr 2007 23:25:19 +0000</pubDate>
		<guid isPermaLink="false">http://disjointthoughts.com/?p=143#comment-311</guid>
		<description>I think if you read the original post http://disjointthoughts.com/?p=143 Eric you might find the answer you&#039;re looking for.</description>
		<content:encoded><![CDATA[<p>I think if you read the original post <a href="http://disjointthoughts.com/?p=143" rel="nofollow">http://disjointthoughts.com/?p=143</a> Eric you might find the answer you&#8217;re looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://disjointthoughts.com/2007/03/02/using-negate-in-ruby-regex/comment-page-1/#comment-307</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Mon, 30 Apr 2007 09:59:01 +0000</pubDate>
		<guid isPermaLink="false">http://disjointthoughts.com/?p=143#comment-307</guid>
		<description>The carrot sign doesn&#039;t mean negate.. I&#039;m fairly sure it means the line begins with and the $ sign means end.

irb(main):010:0&gt; test = &#039;line test&#039;
=&gt; &quot;line test&quot;
irb(main):011:0&gt; test.match(/^line/)
=&gt; #
irb(main):012:0&gt;
irb(main):013:0&gt; test.match(/test$/)
=&gt; #

I&#039;m trying to find out how to negate a regexp right now. I use these w/ grep and just negate grep (-v), but that doesn&#039;t help a bit w/ ruby! Best of luck!</description>
		<content:encoded><![CDATA[<p>The carrot sign doesn&#8217;t mean negate.. I&#8217;m fairly sure it means the line begins with and the $ sign means end.</p>
<p>irb(main):010:0&gt; test = &#8216;line test&#8217;<br />
=&gt; &#8220;line test&#8221;<br />
irb(main):011:0&gt; test.match(/^line/)<br />
=&gt; #<br />
irb(main):012:0&gt;<br />
irb(main):013:0&gt; test.match(/test$/)<br />
=&gt; #</p>
<p>I&#8217;m trying to find out how to negate a regexp right now. I use these w/ grep and just negate grep (-v), but that doesn&#8217;t help a bit w/ ruby! Best of luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://disjointthoughts.com/2007/03/02/using-negate-in-ruby-regex/comment-page-1/#comment-146</link>
		<dc:creator>James</dc:creator>
		<pubDate>Sat, 03 Mar 2007 01:09:40 +0000</pubDate>
		<guid isPermaLink="false">http://disjointthoughts.com/?p=143#comment-146</guid>
		<description>Regular expressions remain for me a dark science.  Certain things eventually stick in my head after repeated use, while others require me to go Googling.

The ^ thing was a recent memory acquisition for me.

One nice thing is that there are many regex help pages on the Web.  But beware; many of these are geared for perl, and there are a few differences from Ruby.</description>
		<content:encoded><![CDATA[<p>Regular expressions remain for me a dark science.  Certain things eventually stick in my head after repeated use, while others require me to go Googling.</p>
<p>The ^ thing was a recent memory acquisition for me.</p>
<p>One nice thing is that there are many regex help pages on the Web.  But beware; many of these are geared for perl, and there are a few differences from Ruby.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

