MOO-cows Mailing List Archive


regex substitution

Is there a verb which does substitution based on regex pattern
matching?  $string_utils:substitute doesn't, but it would be nice
if it did.  If not, then does someone have some pre-written code
which does this.  I'd rather not write it myself if it's already
been done.  :)

My application is filters, such as for drunk players, but more
general.  I'd like to match patterns and replace them with any
other text to change speech.  If anyone has already done filters,
I'd be interested in seeing them.


Bolie IV

Bolie Williams IV                                             ( ^ )
Systems Administrator                                         (O O)
Rice University                                                v-v
----- - - -----

Home | Subject Index | Thread Index