Skip to content

Instantly share code, notes, and snippets.

@ain
Created February 23, 2012 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ain/1894734 to your computer and use it in GitHub Desktop.
Save ain/1894734 to your computer and use it in GitHub Desktop.
String.replace() method for ActionScript2
String.prototype.replace = function(searchStr, replaceStr):String {
return this.split(searchStr).join(replaceStr);
};
@ain
Copy link
Author

ain commented Feb 23, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment