Use ranges with the dash character (-), and you can have multiple ranges in one character class, as well as combine ranges with single characters : RegExp : Regular Expressions Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Regular Expressions » RegExp »

 

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


    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Regular Expressions
» RegExp