Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using str_replace()

Status
Not open for further replies.

cleansedbb

Technical User
Feb 11, 2002
95
US
I want to remove the following from the scripts. I am planning to use str_replace to remove it but how would I replace the duplicated user name in the following |username|?


$textbg = str_replace(&quot;<script LANGUAGE=\&quot;Javascript\&quot;> if (parent.frames[2].ignore.indexOf(\&quot;&quot;, &quot;&quot;, &quot;$text&quot;);

$textmid = str_replace(&quot;|\&quot;) == -1) {document.write(\'&quot;,&quot;&quot;,&quot;$test&quot;);

$textend = str_replace(&quot;\'); } </script>&quot;);


<script LANGUAGE=&quot;Javascript&quot;> if (parent.frames[2].ignore.indexOf(&quot;|UserName|&quot;) == -1) {document.write('<font color=Aliceblue><B><big>UserName</big></B> - Message text</font><br>'); } </script>


 
<bump>

how would you search for a wildcard?

the | | are the same but the Username chagnes.
 
sorry about the bump. and thanks for the info.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top