var reg:RegExp=/^[*]+$/;
var patten:String = "["+變數+"]+$"; var reg:RegExp = new RegExp(patten,"i");
var reg:RegExp = new RegExp("[" + 變數 + "]+$", "i");
var str:String = 'abc'; var re0:RegExp = /^\d/; var re1:RegExp = /\d$/; var re2:RegExp = new RegExp(re0.source+str+re1.source);
沒有留言:
張貼留言