<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1028762" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1028762</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/finding-first-instance#comment-1168979</link>
    <description> &lt;p&gt;Remember to use the trim() function too just incase there is a leading space &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;Glad to see you got what you were looking for!&lt;/p&gt;
&lt;p&gt;-dk&lt;/p&gt;
 </description>
     <pubDate>Sat, 02 Apr 2005 17:42:21 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1168979 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/finding-first-instance#comment-1168960</link>
    <description> &lt;p&gt;Solution:&lt;/p&gt;
&lt;p&gt;	$str = &quot;re: this is the topic&quot;;&lt;br /&gt;
	$re = substr(&quot;$str&quot;, 0, 3);&lt;br /&gt;
	if($re == &#039;re:&#039;)&lt;br /&gt;
	{&lt;br /&gt;
		echo &quot;this string starts with re:&quot;;&lt;br /&gt;
	}&lt;/p&gt;
 </description>
     <pubDate>Sat, 02 Apr 2005 10:34:08 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1168960 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/finding-first-instance#comment-1168958</link>
    <description> &lt;p&gt;Thanks dk01, could be what I was looking for.&lt;/p&gt;
&lt;p&gt;Greg K, am trying to find if the strings starts with &#039;re:&#039; (as in reply), but not return a result if included elsewhere in the string.&lt;/p&gt;
 </description>
     <pubDate>Sat, 02 Apr 2005 09:50:16 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1168958 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/finding-first-instance#comment-1168945</link>
    <description> &lt;p&gt;I&#039;m missing what you are actually trying to get from this example. (hey I just woke up, so I might be the brain dead one right now &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;From your example you are just wanting to see if it starts with RE:  or RE: is one of the things you are looking for? Are you just needing to get up to the first colon if it exists (so you can get RE: and FWD: ?)&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Fri, 01 Apr 2005 16:23:29 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1168945 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/finding-first-instance#comment-1168944</link>
    <description> &lt;p&gt;Check out the &lt;a href=&quot;http://us3.php.net/manual/en/function.strpos.php&quot; class=&quot;bb-url&quot;&gt;strpos()&lt;/a&gt; function and the &lt;a href=&quot;http://us3.php.net/manual/en/function.substr.php&quot; class=&quot;bb-url&quot;&gt;substr()&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;Together I am sure they can do what you are looking for.&lt;/p&gt;
&lt;p&gt;-dk&lt;/p&gt;
 </description>
     <pubDate>Fri, 01 Apr 2005 16:03:13 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1168944 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/finding-first-instance#comment-1168928</link>
    <description> &lt;p&gt;Sounds like Perl would be perfect for this...&lt;/p&gt;
&lt;p&gt;I&#039;m not nearly as familiar with PHP, but I know in Perl you might have to put a backslash before the &quot;:&quot; to get Perl to recognize it.&lt;/p&gt;
 </description>
     <pubDate>Fri, 01 Apr 2005 12:47:14 +0000</pubDate>
 <dc:creator>timjpriebe</dc:creator>
 <guid isPermaLink="false">comment 1168928 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
