Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RegexGM

This is an extension for Gamemaker written in C# that ports the wonderful, easy to use, and powerful .NET Regex class over to Gamemaker.

Ths source code for the library can be found in the RegexGM folder, and an example project can be found in RegexTests.gm81.

Example

// Create a regex with no additional options and a timeout of 3000ms.
// The pattern [^\d] matches all non-digit characters.
var regex, input, replace;
regex = regex_create("[^\d]", RO_NONE, 3000);
input = "12ff45hj9";
replace = "";

// This will replace all matches with nothing, effectively removing them from the string.
var result;
result = regex_replace(regex, input, replace);
show_debug_message(result);

// Outputs:
// 12459

About

A port of the .NET Regex class

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages