Profile
Achievement
mgeduld's Recent SnippetsTagged regexp
- All /
« Prev 1 Next »
This simple construct allows you to replace parts of a string with items in a hash table (e.g. and Object).
Example:
var replacements : Object = { SPEED : "slow", ADJECTIVE : "green", VERB: "slithers" };
var template: String = "The %{SPEED}...
0
1093
posted 13 years ago by mgeduld