class test.Regex1 {
public static function main(container : MovieClip) : Void {
var str="pageinfo4 pageinfo5 pageinfo6 pageinfo7 picture5 picture6 picture9";
var regEx="pageinfo[0-9]+";
var p:Pattern=new Pattern(regEx);
var m:Matcher=p.getMatcher(str);
var s:String=m.replaceAll("page");
trace(s);
}
}
///////////////////////////////
when I run this swf ,
It's through a big warning say that too slowl to run?why?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I get a problem in org.as2lib.regexp.Matcher replaceAll function !
here my code
import org.as2lib.regexp.Pattern;
import org.as2lib.regexp.Matcher;
class test.Regex1 {
public static function main(container : MovieClip) : Void {
var str="pageinfo4 pageinfo5 pageinfo6 pageinfo7 picture5 picture6 picture9";
var regEx="pageinfo[0-9]+";
var p:Pattern=new Pattern(regEx);
var m:Matcher=p.getMatcher(str);
var s:String=m.replaceAll("page");
trace(s);
}
}
///////////////////////////////
when I run this swf ,
It's through a big warning say that too slowl to run?why?