Flash / Flex / ActionScript/Development/group

Материал из Web эксперт
Перейти к: навигация, поиск

create your own groups of character classes: place the letters that you want to match inside square brackets

 
package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        trace("the cat sat on the mat".match(/[msc]at/g)); //cat,sat,mat
    }
  }
}