Tags: replace

Sort by: Date / Title /

  1. 6 months ago by sx
    1. <?php
    2.     $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "<a href=\"\\0\">\\0</a>", $text);
    3. ?>
  2. 11 months ago by spirit
    1. function replace(str:String,find:String,replace:String):String
    2. {
    3.         var index:Number;
    4.         while(str.indexOf(find)!=-1)
    5.         {
    6.                 index= str.indexOf(find);
    7.                 str = str.substr(0,index) + replace + str.substr(index + find.length);
    8.         }
    9.         return str;
    10. }

First / Previous / Next / Last / Page 1 of 1 (2 posteets)