Regex

by Lummox JR
A regular expression library for DM [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://LummoxJR.Regex##version=4

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://LummoxJR.Regex##version=4

186 downloads
Version 1.1
Date added: Apr 8 2005
Last updated: Jan 19 2011
4 fans
This is a regular expression library for DM. Pretty much all of the standard Perl regex functionality is included, except some advanced features like look-ahead/behind assertions.

To work with this, just create the expression like so:

var/regex/R = new("/text/i")
if(R.Find(my_text))
usr << "Pattern match found: [copytext(R.match, R.index)]"

Full documentation is included.