invert a character class by using a caret (^) immediately after the open bracket ([). : RegExp : Regular Expressions Flash / Flex / ActionScript examples


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

 

invert a character class by using a caret (^) immediately after the open bracket ([).


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        trace("roger dodger".match(/[^oges]/g))//r,r,d,d,r
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Regular Expressions
» RegExp