<?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: Mimicking Lookbehind in JavaScript</title>
	<atom:link href="http://blog.stevenlevithan.com/archives/mimic-lookbehind-javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.stevenlevithan.com/archives/mimic-lookbehind-javascript</link>
	<description>A JavaScript and regular expression centric blog</description>
	<lastBuildDate>Thu, 09 Feb 2012 10:18:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: plumvelpeli</title>
		<link>http://blog.stevenlevithan.com/archives/mimic-lookbehind-javascript/comment-page-1#comment-151469</link>
		<dc:creator>plumvelpeli</dc:creator>
		<pubDate>Fri, 04 Nov 2011 18:33:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/regular-expressions/mimic-lookbehind-javascript/#comment-151469</guid>
		<description>???????? ? ??????????????? ??????????? &quot;???? ???????? ? ??????????????????? ???????????? (??????????????) &quot; ???????????? ??? ?????????????? ???? ????????. ????????? ????????????? ?? &lt;b&gt;????????? ?????????????? ?????????&lt;/b&gt; ????? ???? ?????????? ????????? ?????????? ? ??????? ?????????????? ? ??????????? ??????????? ??????? ? ???????????, ???????????????? ?? ?????????? ??????. ???? ??????????? ? &quot;??????????&quot; ????????? ???????? ????? ????????? (Artem Avetisyan), ?????????? ????????????? ??????????? &lt;b&gt;???&lt;/b&gt; - &quot;????? ??????&quot;.  
? ????????? ? ???????? ???????????? ?? &quot;???????&quot; ?????????? ??????, ?? ??????? ???????? ??????????? ???????? 50 ????????????. ?? ?????? ?????? ?????????, ?????? ?????????? ?????????? ?????????????? ? ???????? ??????, ? ????????? ????????? ?????? ? ???? ??????????? ?????????? ?? ????? 2011 ????.  
- ???, ??? ????????? ?? ????????? ?????????? - ??? ?????????????? ????&lt;b&gt;???&lt;/b&gt;? ?? ??????????????, - ??????? ???????????? &quot;?????? ???????&quot;.  
- ??????? ????????? ?????????? ?? ???????? ??????????? ??????????? ?? ?????? ????????? ??????? ?? ??????????? ???? ????? ????????. ?? ??  ????????????, ??? ?? ??????? ?? ?????? ????? ???????? ????????????? ?? ?????? ? ????. ??? ????? 70-80% ?????? ????? ??????.  
? ????????? ????? &lt;b&gt;????????? ?????????????? ?????????&lt;/b&gt;  ????????? ?????????? ?????? ? ???????????????? (???), ????????? ??????????? ????????????? ??? ?????? ? ??????????. ????????????? ???????? ? ?????? ?????????????? ???????????? ?? ??????????????? ? ????????????? ??????????, ??????? ????????? ??? ?????? ?????????????? ? ?????????????? ??????-????????. ????? ??? ??????????? &lt;b&gt;???&lt;/b&gt; 100 ??? ?????? ?? ??????????? ????????. ????? ????,  ?????????? ????? &lt;b&gt;???&lt;/b&gt; ? ?????????????? ????????????? ? ??, ??? ????????? ????? ???????? ????????? ???????? ??? ????????? ??????-???????  ?????????????? ?????????? ?? ???? ??????? - ????????????, ?????????? , ?????????????? ??????? &lt;b&gt;????????? ?????????????? ?????????&lt;/b&gt;. ??????, ???????????? ????? ?????????, ??????? ? ???????????? ??????????????? ???????????? , ????? ???????????????? ??? ??????????? ? ??????? ???????. ?????????????? ?? ?????? ????? ??????? ??????????? ? ?????? ???????? ??? ???????? ???????? ??????? , ?? ?????????? ???????? ? ???? 10 ???????????.  - ??? - ??? ???????? ????????, ??????? ????????? ?????? ?? ????, - ??????? ???????????? ??????????? &quot;????? ??????&quot;.  
- ????????????? ??? ???? ??????????? ????? ??????? ?????? ????????????? ??????. ??? ??????????? ??????? ????????? ?????????, ????? ?????? ?????????????. ???????????? ? ??? ??????????????? ?????? ??????????? ???????????? ??????? ?????? ??? ??? ??????? ????????? ???????. ?? ?????? ????????? &quot;?????? ???????&quot; ?????? ?????????, ??? ????? ?????????? ??????????, ?????????????? ? ??????????, ????? ???????  ???????????? ????????, ????????? ?? &lt;b&gt;???&lt;/b&gt;. ???? ??? ???????? ????????? ??????????????? ??????? ? ????? ?????????? ?????????? ? ????. ?????????????? ? &lt;b&gt;???&lt;/b&gt; ????? ?? ?????? , ??? ???????????????, ??????????????? ??????????,  ??????? ???????? ??????? ?? ????????? ?????????.  
&lt;b&gt;???&lt;/b&gt; ?? ????????????? ?????????????? ? ?????????? ????????. ?????????  ?????? ???? ??????????. ????????? ????????? ?????? ? ????????????? ????????????? ????? ?????????.  ?? ????????????? ???????? ????????? ???, ??? ????? ??????????  ?????????? ????????? ? ????????????? ? ??????? - ?? ????? ??????????? ??????????? ?????????? ??????, ?? ????? ?????????? ??????. ? ????? ???????? ?????? ???????????? &lt;b&gt;???&lt;/b&gt; -  ???????? ??????????????? ? ?????????? ??? ????, ??????????????? ????????????? ??? ??????? ? ??????? ????? ???????? ??????? ????????????.</description>
		<content:encoded><![CDATA[<p>???????? ? ??????????????? ??????????? &#8220;???? ???????? ? ??????????????????? ???????????? (??????????????) &#8221; ???????????? ??? ?????????????? ???? ????????. ????????? ????????????? ?? <b>????????? ?????????????? ?????????</b> ????? ???? ?????????? ????????? ?????????? ? ??????? ?????????????? ? ??????????? ??????????? ??????? ? ???????????, ???????????????? ?? ?????????? ??????. ???? ??????????? ? &#8220;??????????&#8221; ????????? ???????? ????? ????????? (Artem Avetisyan), ?????????? ????????????? ??????????? <b>???</b> &#8211; &#8220;????? ??????&#8221;.<br />
? ????????? ? ???????? ???????????? ?? &#8220;???????&#8221; ?????????? ??????, ?? ??????? ???????? ??????????? ???????? 50 ????????????. ?? ?????? ?????? ?????????, ?????? ?????????? ?????????? ?????????????? ? ???????? ??????, ? ????????? ????????? ?????? ? ???? ??????????? ?????????? ?? ????? 2011 ????.<br />
- ???, ??? ????????? ?? ????????? ?????????? &#8211; ??? ?????????????? ????<b>???</b>? ?? ??????????????, &#8211; ??????? ???????????? &#8220;?????? ???????&#8221;.<br />
- ??????? ????????? ?????????? ?? ???????? ??????????? ??????????? ?? ?????? ????????? ??????? ?? ??????????? ???? ????? ????????. ?? ??  ????????????, ??? ?? ??????? ?? ?????? ????? ???????? ????????????? ?? ?????? ? ????. ??? ????? 70-80% ?????? ????? ??????.<br />
? ????????? ????? <b>????????? ?????????????? ?????????</b>  ????????? ?????????? ?????? ? ???????????????? (???), ????????? ??????????? ????????????? ??? ?????? ? ??????????. ????????????? ???????? ? ?????? ?????????????? ???????????? ?? ??????????????? ? ????????????? ??????????, ??????? ????????? ??? ?????? ?????????????? ? ?????????????? ??????-????????. ????? ??? ??????????? <b>???</b> 100 ??? ?????? ?? ??????????? ????????. ????? ????,  ?????????? ????? <b>???</b> ? ?????????????? ????????????? ? ??, ??? ????????? ????? ???????? ????????? ???????? ??? ????????? ??????-???????  ?????????????? ?????????? ?? ???? ??????? &#8211; ????????????, ?????????? , ?????????????? ??????? <b>????????? ?????????????? ?????????</b>. ??????, ???????????? ????? ?????????, ??????? ? ???????????? ??????????????? ???????????? , ????? ???????????????? ??? ??????????? ? ??????? ???????. ?????????????? ?? ?????? ????? ??????? ??????????? ? ?????? ???????? ??? ???????? ???????? ??????? , ?? ?????????? ???????? ? ???? 10 ???????????.  &#8211; ??? &#8211; ??? ???????? ????????, ??????? ????????? ?????? ?? ????, &#8211; ??????? ???????????? ??????????? &#8220;????? ??????&#8221;.<br />
- ????????????? ??? ???? ??????????? ????? ??????? ?????? ????????????? ??????. ??? ??????????? ??????? ????????? ?????????, ????? ?????? ?????????????. ???????????? ? ??? ??????????????? ?????? ??????????? ???????????? ??????? ?????? ??? ??? ??????? ????????? ???????. ?? ?????? ????????? &#8220;?????? ???????&#8221; ?????? ?????????, ??? ????? ?????????? ??????????, ?????????????? ? ??????????, ????? ???????  ???????????? ????????, ????????? ?? <b>???</b>. ???? ??? ???????? ????????? ??????????????? ??????? ? ????? ?????????? ?????????? ? ????. ?????????????? ? <b>???</b> ????? ?? ?????? , ??? ???????????????, ??????????????? ??????????,  ??????? ???????? ??????? ?? ????????? ?????????.<br />
<b>???</b> ?? ????????????? ?????????????? ? ?????????? ????????. ?????????  ?????? ???? ??????????. ????????? ????????? ?????? ? ????????????? ????????????? ????? ?????????.  ?? ????????????? ???????? ????????? ???, ??? ????? ??????????  ?????????? ????????? ? ????????????? ? ??????? &#8211; ?? ????? ??????????? ??????????? ?????????? ??????, ?? ????? ?????????? ??????. ? ????? ???????? ?????? ???????????? <b>???</b> &#8211;  ???????? ??????????????? ? ?????????? ??? ????, ??????????????? ????????????? ??? ??????? ? ??????? ????? ???????? ??????? ????????????.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.stevenlevithan.com/archives/mimic-lookbehind-javascript/comment-page-1#comment-137884</link>
		<dc:creator>David</dc:creator>
		<pubDate>Fri, 23 Sep 2011 08:47:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/regular-expressions/mimic-lookbehind-javascript/#comment-137884</guid>
		<description>Also in the 3rd method, &#039;regex.x.gRegex&#039; should NOT be an exact copy of &#039;regex&#039;.  &#039;regex.x.gRegex&#039; should be the intended regex, including any any lookAHEADS.  &#039;regex&#039; should be a copy of &#039;regex.x.gRegex&#039; except that any positive lookaheads whose values won&#039;t be in a match of &#039;regex.x.gRegex&#039; (e.g., any trailing lookahead) should be excluded.  Otherwise the match[0].replace(regex, replacement) call will fail because &#039;regex&#039; includes a positive lookahead but the characters that lead to the match aren&#039;t included in match[0].</description>
		<content:encoded><![CDATA[<p>Also in the 3rd method, &#8216;regex.x.gRegex&#8217; should NOT be an exact copy of &#8216;regex&#8217;.  &#8216;regex.x.gRegex&#8217; should be the intended regex, including any any lookAHEADS.  &#8216;regex&#8217; should be a copy of &#8216;regex.x.gRegex&#8217; except that any positive lookaheads whose values won&#8217;t be in a match of &#8216;regex.x.gRegex&#8217; (e.g., any trailing lookahead) should be excluded.  Otherwise the match[0].replace(regex, replacement) call will fail because &#8216;regex&#8217; includes a positive lookahead but the characters that lead to the match aren&#8217;t included in match[0].</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://blog.stevenlevithan.com/archives/mimic-lookbehind-javascript/comment-page-1#comment-137877</link>
		<dc:creator>David</dc:creator>
		<pubDate>Fri, 23 Sep 2011 08:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/regular-expressions/mimic-lookbehind-javascript/#comment-137877</guid>
		<description>I think the first line in the else branch of the while loop in the 3rd method needs to be changed from 

output += match[0].charAt(0)

to

output += data.substring(lastLastIndex, match.index) + match[0].charAt(0)

Otherwise, if the regex.x.gRegex.exec(data) consumes multiple characters via non-matches, those characters won&#039;t be included in the output.</description>
		<content:encoded><![CDATA[<p>I think the first line in the else branch of the while loop in the 3rd method needs to be changed from </p>
<p>output += match[0].charAt(0)</p>
<p>to</p>
<p>output += data.substring(lastLastIndex, match.index) + match[0].charAt(0)</p>
<p>Otherwise, if the regex.x.gRegex.exec(data) consumes multiple characters via non-matches, those characters won&#8217;t be included in the output.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: javascript regex &#8211; look behind alternative?</title>
		<link>http://blog.stevenlevithan.com/archives/mimic-lookbehind-javascript/comment-page-1#comment-136560</link>
		<dc:creator>javascript regex &#8211; look behind alternative?</dc:creator>
		<pubDate>Sun, 18 Sep 2011 10:48:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/regular-expressions/mimic-lookbehind-javascript/#comment-136560</guid>
		<description>[...] Here are some thoughts, but needs helper functions. I was hoping to achieve it just with a regex: http://blog.stevenlevithan.com/archives/mimic-lookbehind-javascript [...]</description>
		<content:encoded><![CDATA[<p>[...] Here are some thoughts, but needs helper functions. I was hoping to achieve it just with a regex: <a href="http://blog.stevenlevithan.com/archives/mimic-lookbehind-javascript" rel="nofollow">http://blog.stevenlevithan.com/archives/mimic-lookbehind-javascript</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://blog.stevenlevithan.com/archives/mimic-lookbehind-javascript/comment-page-1#comment-133999</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 08 Sep 2011 13:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/regular-expressions/mimic-lookbehind-javascript/#comment-133999</guid>
		<description>What would be useful would be to provide the equivalent of \b(\w+)\b for getting all words in document for unicode. Xregex provides \p{L} for matching unicode characters and \P{L} as the negation so it should be possible to do something like the following

/(?&lt;=\P{L})(\p{L}+)(?=\P{L})/

to get all unicode words</description>
		<content:encoded><![CDATA[<p>What would be useful would be to provide the equivalent of \b(\w+)\b for getting all words in document for unicode. Xregex provides \p{L} for matching unicode characters and \P{L} as the negation so it should be possible to do something like the following</p>
<p>/(?&lt;=\P{L})(\p{L}+)(?=\P{L})/</p>
<p>to get all unicode words</p>
]]></content:encoded>
	</item>
</channel>
</rss>

