WEIRDCALCULATOR
⠺⠑⠊⠗⠙⠉⠁⠇⠉⠥⠇⠁⠞⠕⠗
Wednesday, October 8, 2008
Flash function to replace string
code:
String.prototype.replace = function(searchStr, replaceStr):String {
var arr:Array = this.split(searchStr);
return arr.join(replaceStr);
};
usage:
newString = replace("string to search", "string to replace");
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment