24 | 01 | 2018
Regular Expressions

There are two new procedures in version 4.1 which introduce Perl regular expressions to MudMaster 2k6.

@regex(RegexPattern, stringToMatch)  returns true if a match is made false otherwise.

@regexMatch(RegexPattern, stringToMatch) returns the string that matches the pattern and fills the session level system array called RegexSubMatches with the submatches. The element indexes match the sub match number.

For details of the syntax and use of regular expressions check out the Boost.org documentation ar http://www.boost.org/doc/libs/1_37_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html 

These regular expressions are now what /scrollgrep uses to match lines in the scrollback buffer.