Contents
Key | Type | Value |
---|---|---|
default | ds_list | A list of ds_maps corresponding to CAPTURE objects |
Example
Code:
1
2
3
4
5
var hello = regex_create("hello", RO_NONE, 3000);
var match = regex_match(hello, "hello");
var group = match_get_group_by_index(match, 0);
var json = group_get_captures_json(group);
var map = json_decode(json);
JSON result:
1
2
3
4
5
6
7
8
9
{
"default": [
{
"index": 0,
"length": 5,
"value": "hello"
}
]
}