replace all: case insentitive

Fonction replaceAll

public static function StringReplaceAllCaseInensitive( source:String, find:String, replacement:String ) : String{
    var r:RegExp = new RegExp(find.toLocaleLowerCase(), "gi")
    return source.replace(r, replacement);
}

Partager:
  • Facebook
  • Print
  • Google Bookmarks
  • Digg
  • Yahoo! Bookmarks
  • del.icio.us
  • Live
  • LinkedIn

Fatal error: Call to undefined function comment_form() in /homez.59/proxymis/www/blog/wp-content/themes/wp-perfect/comments.php on line 53