frost.core

Class RegularExpression

    └ Immutable
         └ Object

Represents a regular expression that can be used for matching and parsing strings. RegularExpression objects can be created explicitly from strings, but are more typically created using the shorthand syntax: /regex/.

Source Code:
View Source

Constant Summary

MULTILINE:Int
CASE_INSENSITIVE:Int
DOTALL:Int

Initializer Summary

init(regex:String)
Creates a new RegularExpression.
init(regex:String, flags:Int)
Creates a new RegularExpression with the given flags.
Inherited Fields:

Instance Method Summary

matcher(text:String):Matcher
Returns a Matcher which searches the given string.

Constants

@class
constant MULTILINE:Int
@class
constant CASE_INSENSITIVE:Int
@class
constant DOTALL:Int

Initializers

init (regex:String)

Creates a new RegularExpression.

Parameters:
regex - value of type String
init (regex:String,
 flags:Int)

Creates a new RegularExpression with the given flags.

Parameters:
regex - value of type String
flags - value of type Int

Instance Methods

function matcher (text:String
):Matcher

Returns a Matcher which searches the given string.

Parameters:
text - value of type String