Access keys

Matcher

Kind of class: class
Inherits from: BasicClass
Author: Igor Sadovskiy
Classpath: org.as2lib.regexp.Matcher
File last modified: Tuesday, 11 October 2005, 16:55:40
Matcher provides implementations of the match, search and
replace RegExp routines.

Constructor

Matcher

function Matcher (
newParent:Pattern, newText:String)

Class properties

ENDANCHOR

static ENDANCHOR:Number = 1
(read,write)
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 NOANCHOR:Number = 0
(read,write)

Instance methods

appendReplacement

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

appendTail

function appendTail (
source:String) : String

find

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

getEndIndex

function getEndIndex (
group:Number) : Number

getGroup

function getGroup (
group:Number) : String

getGroupCount

function getGroupCount (
Void) : Number

getPattern

function getPattern (
Void) : Pattern

getStartIndex

function getStartIndex (
group:Number) : Number

lookingAt

function lookingAt (
Void) : Boolean

matches

function matches (
Void) : Boolean

replaceAll

function replaceAll (
replacement:String) : String

replaceFirst

function replaceFirst (
replacement:String) : String

reset

function reset (
input:String) : Matcher