<?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: Overview of Javascript Regex</title>
	<atom:link href="http://fire-studios.com/blog/overview-of-javascript-regex/feed" rel="self" type="application/rss+xml" />
	<link>http://fire-studios.com/blog/overview-of-javascript-regex</link>
	<description>Become A Guru</description>
	<lastBuildDate>Mon, 08 Mar 2010 20:14:10 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: xNephilimx</title>
		<link>http://fire-studios.com/blog/overview-of-javascript-regex#comment-43</link>
		<dc:creator>xNephilimx</dc:creator>
		<pubDate>Wed, 01 Oct 2008 01:05:48 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/fs/blog/?p=3#comment-43</guid>
		<description>For those of you who came here looking for a solution to single-line mode in JavaScript RegEx, notice that there&#039;s no such thing as a &#039;/s&#039; modifier in the JavaScript regex implementation. It&#039;s just plain not implemented. To work around the dot not matching newline characters you should change the dot for [\s\S] (whitespace and/or not whitespace).

So:

having a text like this:

Maecenas ullamcorper tellus eu metus. Aliquam blandit, tortor eget pellentesque consequat; leo risus malesuada enim, sit amet commodo risus dui vel turpis.

In tempus elit ut nisl. Sed elementum. Vivamus pretium feugiat purus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Quisque et quam.

the pattern /\(.*?)\/ig won&#039;t match, while the pattern /\([\s\S]*?)\/ig will.</description>
		<content:encoded><![CDATA[<p>For those of you who came here looking for a solution to single-line mode in JavaScript RegEx, notice that there's no such thing as a '/s' modifier in the JavaScript regex implementation. It's just plain not implemented. To work around the dot not matching newline characters you should change the dot for [\s\S] (whitespace and/or not whitespace).</p>
<p>So:</p>
<p>having a text like this:</p>
<p>Maecenas ullamcorper tellus eu metus. Aliquam blandit, tortor eget pellentesque consequat; leo risus malesuada enim, sit amet commodo risus dui vel turpis.</p>
<p>In tempus elit ut nisl. Sed elementum. Vivamus pretium feugiat purus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Quisque et quam.</p>
<p>the pattern /\(.*?)\/ig won't match, while the pattern /\([\s\S]*?)\/ig will.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Regular Expressions in JavaScript don&#39;t support the single-line mode - Waldek Mastykarz</title>
		<link>http://fire-studios.com/blog/overview-of-javascript-regex#comment-10</link>
		<dc:creator>Regular Expressions in JavaScript don&#39;t support the single-line mode - Waldek Mastykarz</dc:creator>
		<pubDate>Thu, 21 Aug 2008 15:02:47 +0000</pubDate>
		<guid isPermaLink="false">http://localhost/fs/blog/?p=3#comment-10</guid>
		<description>[...] on the Internet on how to activate the Single-line mode in JavaScript will lead you to the Overview Of JavaScript Regex page at Fire Studios. According to the information on that page you can use the &quot;/s&quot; [...]</description>
		<content:encoded><![CDATA[<p>[...] on the Internet on how to activate the Single-line mode in JavaScript will lead you to the Overview Of JavaScript Regex page at Fire Studios. According to the information on that page you can use the &#34;/s&#34; [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
