RegExMatch

Inherits: Reference < Object

Category: Core

Brief Description

Member Functions

int get_end ( Variant name=0 ) const
int get_group_count ( ) const
Dictionary get_names ( ) const
int get_start ( Variant name=0 ) const
String get_string ( Variant name=0 ) const
Array get_strings ( ) const
String get_subject ( ) const

Member Function Description

Returns the end position of the match in the string. An integer can be specified for numeric groups or a string for named groups. Returns -1 if that group wasn’t found or doesn’t exist. Defaults to 0 (whole pattern).

  • int get_group_count ( ) const

Returns the number of numeric capturing groups.

Returns an array of names of named capturing groups.

Returns the starting position of the match in the string. An integer can be specified for numeric groups or a string for named groups. Returns -1 if that group wasn’t found or doesn’t exist. Defaults to 0 (whole pattern).

Returns the result of the match in the string. An integer can be specified for numeric groups or a string for named groups. Returns -1 if that group wasn’t found or doesn’t exist. Defaults to 0 (whole pattern).

  • Array get_strings ( ) const
  • String get_subject ( ) const