Class org.as2lib.regexp.node.Dollar

Description

Dollar is a node to anchor at the end of a line or the end of input based on the multiline mode. When not in multiline mode, the $ can only match at the very end of the input, unless the input ends in a line terminator in which it matches right before the last line terminator. Note that \r\n is considered an atomic line terminator. Like ^ the $ operator matches at a position, it does not match the line terminators themselves.

Method Index

new Dollar()
match(), study()

Inherited from Node

Inherited from BasicClass

Constructor Detail

Dollar

public function Dollar(mul:Boolean)

Method Detail

match

public function match(matcher:Object, i:Number, seq:String):Boolean

Description copied from Node

This method implements the classic accept node.

Overrides

match() in org.as2lib.regexp.node.Node

study

public function study(info:TreeInfo):Boolean

Description copied from Node

This method is good for all zero length assertions.

Overrides

study() in org.as2lib.regexp.node.Node