Stever1975 - 2007-10-25

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