<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1034507" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1034507</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/placeholder-php-question#comment-1200754</link>
    <description> &lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;it does need to happen more than once&lt;/p&gt;
&lt;p&gt;and i think your right i looked at preg replace and it seems that will work. can anyone confirm that preg replace will do the job before i spend some time on it?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;JP&lt;/p&gt;
 </description>
     <pubDate>Fri, 26 May 2006 09:12:42 +0000</pubDate>
 <dc:creator>JP Stones</dc:creator>
 <guid isPermaLink="false">comment 1200754 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/placeholder-php-question#comment-1200701</link>
    <description> &lt;p&gt;I think this should do it, although I haven&#039;t tested it.&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$input_string &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;[click here:http://www.website.com]\&quot;;//this is from the form&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$first_bracket&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = strpos(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$input_string&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, \&quot;[\&quot;) + 1;//get the position of the first bracket and go 1 past it&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$last_bracket&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = strrpos(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$input_string&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, \&quot;]\&quot;);//get the position of the last bracket&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$substr_length&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$last_bracket&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; - &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$first_bracket&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;//get the length of between the brackets&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$input_string&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = substr(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$input_string&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$first_bracket&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$substr_length&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);//cut out the inside of the brackets&lt;br /&gt;list(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$link_text&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$link_url&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) = explode(\&quot;:\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$input_string&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);//get the data from either side of the :&lt;br /&gt;echo \&quot;&amp;lt;a href=\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$link_url&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.\&quot;\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$link_text&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.\&quot;&amp;lt;/a&amp;gt;\&quot;;//output&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
This would only work if there was just 1 of these links in the $input_string. It would need to be more complex if there was more than 1.&lt;/p&gt;
&lt;p&gt;EDIT: preg_replace would probably be more appropriate, but my regex isn&#039;t up to that standard &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>Thu, 25 May 2006 12:21:50 +0000</pubDate>
 <dc:creator>cdwhalley.com</dc:creator>
 <guid isPermaLink="false">comment 1200701 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
