Use ranges with the dash character (-), and you can have multiple ranges in one character class, as well as combine ranges with single characters
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
trace("abcdefghijklmnopqrstuvwxyz".match(/[a-cmx-z]/g)); //a,b,c,m,x,y,z
}
}
}
Related examples in the same category