<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHP Interview Questions and answers&#187; Regex archives  &#8211; interview questions and answers</title>
	<atom:link href="http://www.phpinterviewquestions.com/tag/regex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpinterviewquestions.com</link>
	<description>Prepare for your next php based interview with high confidence</description>
	<lastBuildDate>Mon, 26 Sep 2011 08:37:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Strings and regular expressions</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/strings-and-regular-expressions-php-interview-questions/</link>
		<comments>http://www.phpinterviewquestions.com/php-interview-questions/strings-and-regular-expressions-php-interview-questions/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 12:08:03 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[PHP Questions]]></category>
		<category><![CDATA[Regular level]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Regex]]></category>
		<category><![CDATA[Strings]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/?p=284</guid>
		<description><![CDATA[What will be the answer of the following code snippet?

echo 'Testing ' . 1 + 2 . '45';

Simply you will give the answer as : Testing 345
But the answer is  : 245
That is because you can not sum a number with a string. The first part, before the plus mark is a string though [...]]]></description>
			<content:encoded><![CDATA[<p>What will be the answer of the following code snippet?</p>
<pre class="brush: php;">
echo 'Testing ' . 1 + 2 . '45';
</pre>
<p>Simply you will give the answer as : Testing 345</p>
<p>But the answer is  : 245</p>
<p>That is because you can not sum a number with a string. The first part, before the plus mark is a string though there is 1 there.<br />
So engine will simply get it as 0 and the latter part as 245. so answer will be 245.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8695027799979044";
/* 336x280, created 3/4/10 */
google_ad_slot = "4291231574";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/php-interview-questions/strings-and-regular-expressions-php-interview-questions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Regular expressions</title>
		<link>http://www.phpinterviewquestions.com/php-interview-questions/expert-level-php-interview-questions/regular-expressions/</link>
		<comments>http://www.phpinterviewquestions.com/php-interview-questions/expert-level-php-interview-questions/regular-expressions/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 05:19:03 +0000</pubDate>
		<dc:creator>Bart</dc:creator>
				<category><![CDATA[Expert level]]></category>
		<category><![CDATA[Regex]]></category>

		<guid isPermaLink="false">http://www.phpinterviewquestions.com/wordpress/?p=22</guid>
		<description><![CDATA[How can we extract string â€˜phpinterviewquestionsâ€˜ from a string â€˜http://phpinterviewquestions.comâ€™ using regular expression of PHP?
preg_match(&#8216;/http://([wW]+?).com/i&#8217;,'http://phpinterviewquestions.com&#8217;,$out);
echo $out[1];
]]></description>
			<content:encoded><![CDATA[<p>How can we extract string â€˜phpinterviewquestionsâ€˜ from a string â€˜http://phpinterviewquestions.comâ€™ using regular expression of PHP?</p>
<p>preg_match(&#8216;/http://([wW]+?).com/i&#8217;,'http://phpinterviewquestions.com&#8217;,$out);<br />
echo $out[1];</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpinterviewquestions.com/php-interview-questions/expert-level-php-interview-questions/regular-expressions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

