Class org.as2lib.regexp.Matcher

Description

Matcher provides implementations of the match, search and replace RegExp routines.

See Also

Field Index

ENDANCHOR, NOANCHOR

Method Index

new Matcher()
appendReplacement(), appendTail(), find(), getEndIndex(), getGroup(), getGroupCount(), getPattern(), getStartIndex(), lookingAt(), matches(), replaceAll(), replaceFirst(), reset()

Inherited from BasicClass

Constructor Detail

Matcher

public function Matcher(newParent:Pattern, newText:String)

Field Detail

ENDANCHOR

static public ENDANCHOR:Number
Matcher state used by the last node. NOANCHOR is used when a match does not have to consume all of the input. ENDANCHOR is the mode used for matching all the input.

NOANCHOR

static public NOANCHOR:Number

Method Detail

getPattern

public function getPattern(Void):Pattern

reset

public function reset(input:String):Matcher

getStartIndex

public function getStartIndex(group:Number):Number

getEndIndex

public function getEndIndex(group:Number):Number

getGroup

public function getGroup(group:Number):String

getGroupCount

public function getGroupCount(Void):Number

matches

public function matches(Void):Boolean

find

public function find(newFrom:Number, newTo:Number):Boolean

lookingAt

public function lookingAt(Void):Boolean

appendReplacement

public function appendReplacement(source:String, replacement:String):String

appendTail

public function appendTail(source:String):String

replaceAll

public function replaceAll(replacement:String):String

replaceFirst

public function replaceFirst(replacement:String):String