Create a pattern to match against a string : Match : Regular Expressions Flash / Flex / ActionScript examples


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

 

Create a pattern to match against a string


 
package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var example:RegExp = /abc/;
        traceexample.test"A string with abc in it" ) );
        traceexample.test"abc" ) );

        traceexample.test"Another string to test against..." ) );

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Regular Expressions
» Match