Class org.as2lib.regexp.Pattern

Description

Pattern provides implementations of the parsing engine for basic RegExp constructs.

See Also

Field Index

ACCEPT, CASE_INSENSITIVE, COMMENTS, DOTALL, GREEDY, INDEPENDENT, LASTACCEPT, LAZY, matchRoot, MULTILINE, POSSESSIVE, UNICODE_CASE, UNIX_LINES

Method Index

new Pattern()
getFlags(), getMatcher(), getPattern(), matches(), split()

Inherited from BasicClass

Constructor Detail

Pattern

public function Pattern(newPattern:String, newFlags:Number)

Field Detail

UNIX_LINES

static public UNIX_LINES:Number
Enables Unix lines mode.

CASE_INSENSITIVE

static public CASE_INSENSITIVE:Number
Enables case-insensitive matching.

COMMENTS

static public COMMENTS:Number
Permits whitespace and comments in pattern.

MULTILINE

static public MULTILINE:Number
Enables multiline mode.

DOTALL

static public DOTALL:Number
Enables dotall mode.

UNICODE_CASE

static public UNICODE_CASE:Number
Enables Unicode-aware case folding.

matchRoot

public matchRoot:Node
The root of object tree for a match operation. The pattern is matched at the beginning. This may include a find that uses BnM or a First node.

GREEDY

static public GREEDY:Number

LAZY

static public LAZY:Number

POSSESSIVE

static public POSSESSIVE:Number

INDEPENDENT

static public INDEPENDENT:Number

ACCEPT

static ACCEPT:Node

LASTACCEPT

static LASTACCEPT:Node

Method Detail

getPattern

public function getPattern(Void):String

getMatcher

public function getMatcher(input:String):Matcher

getFlags

public function getFlags(Void):Number

matches

static public function matches(pattern:String, input:String):Boolean

split

public function split(input:String, limit:Number):Array