create your own groups of character classes: place the letters that you want to match inside square brackets : group « Development « Flash / Flex / ActionScript






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

    }
  }
}

        








Related examples in the same category