function Process(){
var p:Pattern = new Pattern("a*b");
var m:Matcher = new Matcher(p, "zaaaabe");
trace(m.find()); // traces true
trace(m.replaceFirst("ho")); // traces blank?????
}
shouldn't replaceFirst return 'zhoe'???
Any help would be appreciated :)
Steve
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't seem to get replaceAll or replaceFirst to work.
import org.as2lib.regexp.Matcher;
import org.as2lib.regexp.Pattern;
function Process(){
var p:Pattern = new Pattern("a*b");
var m:Matcher = new Matcher(p, "zaaaabe");
trace(m.find()); // traces true
trace(m.replaceFirst("ho")); // traces blank?????
}
shouldn't replaceFirst return 'zhoe'???
Any help would be appreciated :)
Steve