Regex

by Lummox JR
A regular expression library for DM
ID:91624
 
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.