<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1037511" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1037511</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/extracting-string#comment-1215000</link>
    <description> &lt;p&gt;ah ha! I&#039;ll get there with the regex one day! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Thanks mate!&lt;/p&gt;
 </description>
     <pubDate>Tue, 13 Feb 2007 01:51:34 +0000</pubDate>
 <dc:creator>andy206uk</dc:creator>
 <guid isPermaLink="false">comment 1215000 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/extracting-string#comment-1214991</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;andy206uk;214983 wrote:&lt;/strong&gt; Hi all,&lt;br /&gt;
Does anyone know if there is a php function that will match a regular expression and give you the matched text as a variable? I thought preg_match would do the job but from what I can tell that just returns a count of how many times it matches?
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;It does return only the number of matches, but preg_match() will work.  It takes an argument called &lt;em&gt;matches&lt;/em&gt; that names a variable in which the function will store an array of successfully matched strings.&lt;/p&gt;
&lt;p&gt;This is the bizarre world of PHP, after all.&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;andy206uk;214983 wrote:&lt;/strong&gt; I&#039;ve tried: \&quot;+[a-zA-Z0-9]\&quot; (one or more alpha numeric characters) but that didnt seem to work.
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;You&#039;ve got the + on the wrong side.  Try [incode]\&quot;[a-zA-Z0-9]+\&quot;[/incode].  &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 13 Feb 2007 00:58:34 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1214991 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
