Welcome to the homepage for the regex extension!
This extension brings the wonderful C# regex engine to Gamemaker through an extensive set of functions.
For more information on what a regex is and how to use it, you can go here. To determine what patterns and constructs are supported, you can go here.
Examples
- Hello, Regex
- Social Security
- Finding Matches
- Groups and Captures
- Replacing Matches
- Splitting Strings
Functions
Creation and Destruction
Basics
Replacing
Matches
- regex_matches
- regex_matches_from
- matches_get_count
- matches_get_match
- match_get_next_match
- match_get_index
- match_get_length
- match_get_value
- match_get_result
- match_get_group_by_name
- match_get_group_by_index
- match_get_group_count
Groups
- group_get_index
- group_get_length
- group_get_value
- group_get_success
- group_get_name
- group_get_capture
- group_get_capture_count
Captures
JSON
- regex_matches_json
- regex_matches_from_json
- regex_match_json
- regex_match_from_json
- match_get_group_json
- match_get_group_by_name_json
- match_get_group_by_index_json
- group_get_captures_json
- group_get_capture_json
- regex_split_json
- regex_split_from_json
- regex_split_count_json
Split
- regex_split
- _regex_split
- _regex_split_count
- _regex_split_from
- _regex_split_from_count
- _split_get_size
- _split_get_count
- _split_get_index
- _split_fill_buffer