Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

RegExMatch

Inherits: RefCounted < Object

Contains the results of a RegEx search.

Description

Contains the results of a single RegEx match returned by RegEx.search and RegEx.search_all. It can be used to find the position and range of the match and its capturing groups, and it can extract its substring for you.

Properties

Dictionary

names

{}

PackedStringArray

strings

PackedStringArray()

String

subject

""

Methods

int

get_end ( Variant name=0 ) const

int

get_group_count ( ) const

int

get_start ( Variant name=0 ) const

String

get_string ( Variant name=0 ) const


Property Descriptions

Dictionary names = {}

A dictionary of named groups and its corresponding group number. Only groups that were ma