<?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: XRegExp 1.0</title>
	<atom:link href="http://blog.stevenlevithan.com/archives/xregexp-1-0/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.stevenlevithan.com/archives/xregexp-1-0</link>
	<description>A JavaScript and regular expression centric blog</description>
	<lastBuildDate>Thu, 02 Feb 2012 02:09:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jim O'Callaghan</title>
		<link>http://blog.stevenlevithan.com/archives/xregexp-1-0/comment-page-1#comment-163319</link>
		<dc:creator>Jim O'Callaghan</dc:creator>
		<pubDate>Tue, 13 Dec 2011 17:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/archives/xregexp-1-0#comment-163319</guid>
		<description>Thanks for the great library.  I think I found a bug using JQuery 1.7.1 with xregexp 1.5.0, IE6 only - around line 270:

    RegExp.prototype.exec = function (str) {
        var match = real.exec.apply(this, arguments),

needs to change to:

    RegExp.prototype.exec = function (str) {
	str = String(str);
        var match = real.exec.apply(this, arguments),

This is for ECMAScript standard (section 15.10.6.2). Found the fix on http://blog.slaks.net/2011/09/xregexp-breaks-jquery-animations.html though his solution:

if (!str.slice)
  str = String(str);

... caused me problems as slice was undefined under the error condition - the unconditional cast seems to work without issue.</description>
		<content:encoded><![CDATA[<p>Thanks for the great library.  I think I found a bug using JQuery 1.7.1 with xregexp 1.5.0, IE6 only &#8211; around line 270:</p>
<p>    RegExp.prototype.exec = function (str) {<br />
        var match = real.exec.apply(this, arguments),</p>
<p>needs to change to:</p>
<p>    RegExp.prototype.exec = function (str) {<br />
	str = String(str);<br />
        var match = real.exec.apply(this, arguments),</p>
<p>This is for ECMAScript standard (section 15.10.6.2). Found the fix on <a href="http://blog.slaks.net/2011/09/xregexp-breaks-jquery-animations.html" rel="nofollow">http://blog.slaks.net/2011/09/xregexp-breaks-jquery-animations.html</a> though his solution:</p>
<p>if (!str.slice)<br />
  str = String(str);</p>
<p>&#8230; caused me problems as slice was undefined under the error condition &#8211; the unconditional cast seems to work without issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lyrics</title>
		<link>http://blog.stevenlevithan.com/archives/xregexp-1-0/comment-page-1#comment-122889</link>
		<dc:creator>lyrics</dc:creator>
		<pubDate>Fri, 05 Aug 2011 21:38:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/archives/xregexp-1-0#comment-122889</guid>
		<description>Thanks for all your work! I really appreciate it. It helped me developing websites easily.</description>
		<content:encoded><![CDATA[<p>Thanks for all your work! I really appreciate it. It helped me developing websites easily.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Regular expressions &#171; Eikonal Blog</title>
		<link>http://blog.stevenlevithan.com/archives/xregexp-1-0/comment-page-1#comment-98449</link>
		<dc:creator>Regular expressions &#171; Eikonal Blog</dc:creator>
		<pubDate>Wed, 27 Apr 2011 16:09:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/archives/xregexp-1-0#comment-98449</guid>
		<description>[...] XRegExp by Steven Levithan &#8211; http://blog.stevenlevithan.com/archives/xregexp-1-0 [...]</description>
		<content:encoded><![CDATA[<p>[...] XRegExp by Steven Levithan &#8211; <a href="http://blog.stevenlevithan.com/archives/xregexp-1-0" rel="nofollow">http://blog.stevenlevithan.com/archives/xregexp-1-0</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Levithan</title>
		<link>http://blog.stevenlevithan.com/archives/xregexp-1-0/comment-page-1#comment-42983</link>
		<dc:creator>Steven Levithan</dc:creator>
		<pubDate>Mon, 02 Nov 2009 15:08:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/archives/xregexp-1-0#comment-42983</guid>
		<description>It is not a Java bug, and it is well specified in the specs for Java, JavaScript, and most other regex flavors. In Java, of course, the singleline option is called dotall (a more descriptive and therefore superior name), and JavaScript doesn&#039;t have a native equivalent (the &lt;code&gt;/s&lt;/code&gt; flag in RegexPal comes from XRegExp, which silently converts the appropriate dots to &lt;code&gt;[\s\S]&lt;/code&gt;).

Lookahead obeys &lt;code&gt;/m&lt;/code&gt; just fine, but &lt;code&gt;/m&lt;/code&gt; has no impact on the dot (whereas &lt;code&gt;/s&lt;/code&gt; does). I think you are a bit confused about what the &lt;code&gt;/m&lt;/code&gt; and &lt;code&gt;/s&lt;/code&gt; flags actually do (this is a common point of confusion since the flags are named so terribly). Please see http://blog.stevenlevithan.com/archives/singleline-multiline-confusing for the details.

&lt;code&gt;XRegExp(&quot;^a(?=.)$&quot;, &quot;ms&quot;).test(&quot;a\n&quot;)&lt;/code&gt; should and does return &lt;code&gt;true&lt;/code&gt;.
&lt;code&gt;XRegExp(&quot;^a(?!.)$&quot;, &quot;ms&quot;).test(&quot;a\n&quot;)&lt;/code&gt; should and does return &lt;code&gt;false&lt;/code&gt;.

This is long-established, cross-library-consistent regex behavior (albeit confusing due to the flag names).</description>
		<content:encoded><![CDATA[<p>It is not a Java bug, and it is well specified in the specs for Java, JavaScript, and most other regex flavors. In Java, of course, the singleline option is called dotall (a more descriptive and therefore superior name), and JavaScript doesn&#8217;t have a native equivalent (the <code>/s</code> flag in RegexPal comes from XRegExp, which silently converts the appropriate dots to <code>[\s\S]</code>).</p>
<p>Lookahead obeys <code>/m</code> just fine, but <code>/m</code> has no impact on the dot (whereas <code>/s</code> does). I think you are a bit confused about what the <code>/m</code> and <code>/s</code> flags actually do (this is a common point of confusion since the flags are named so terribly). Please see <a href="http://blog.stevenlevithan.com/archives/singleline-multiline-confusing" rel="nofollow">http://blog.stevenlevithan.com/archives/singleline-multiline-confusing</a> for the details.</p>
<p><code>XRegExp("^a(?=.)$", "ms").test("a\n")</code> should and does return <code>true</code>.<br />
<code>XRegExp("^a(?!.)$", "ms").test("a\n")</code> should and does return <code>false</code>.</p>
<p>This is long-established, cross-library-consistent regex behavior (albeit confusing due to the flag names).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aeron</title>
		<link>http://blog.stevenlevithan.com/archives/xregexp-1-0/comment-page-1#comment-42958</link>
		<dc:creator>Aeron</dc:creator>
		<pubDate>Mon, 02 Nov 2009 09:03:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/archives/xregexp-1-0#comment-42958</guid>
		<description>Flags: ms
^a(?=.)$ with &quot;a\n&quot; matches but shouldn&#039;t.
^a(?!.)$ with &quot;a\n&quot; does not match but should.

Imo, with multiline enabled a lookAhead should ignore the line terminator (and the rest of the expression) if the following statement is a &#039;$&#039;.</description>
		<content:encoded><![CDATA[<p>Flags: ms<br />
^a(?=.)$ with &#8220;a\n&#8221; matches but shouldn&#8217;t.<br />
^a(?!.)$ with &#8220;a\n&#8221; does not match but should.</p>
<p>Imo, with multiline enabled a lookAhead should ignore the line terminator (and the rest of the expression) if the following statement is a &#8216;$&#8217;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

