AS3 Find and Replace static class

Pass it a string, a search string, and a replacement string and it will return a new string! (did that even make sense?).

This example uses the following code …

import FindReplace;
var originalString:String=”This is the sentence I want to have words was letters found was then replaced was where”;

var resultString:String=FindReplace.FindReplaceText(originalString,”was”,”*WAS*”);

textBox1.text = originalString
textBox2.text = resultString

Download zip