Skip to content

Instantly share code, notes, and snippets.

@ain
Created February 23, 2012 19:55
Show Gist options
  • Select an option

  • Save ain/1894734 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
Author

ain commented Feb 23, 2012

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