From: Jack Dempsey Date: 2002-01-06T05:11:33+09:00 Subject: [ruby-talk:30297] multiple substitutions at once This is a multi-part message in MIME format. ------=_NextPart_000_001C_01C195F9.2C513780 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable In some languages (thinking of PHP) you can pass in an array of patterns = and substitutions for text replacement. I'd like to do something = similar...I think I'll probably write my own function--I'm just = wondering if anyone else would find this useful, or perhaps there's = already a builtin way to do it? Jack ------=_NextPart_000_001C_01C195F9.2C513780 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
In some languages (thinking of PHP) you = can pass in=20 an array of patterns and substitutions for text replacement. I'd like to = do=20 something similar...I think I'll probably write my own function--I'm = just=20 wondering if anyone else would find this useful, or perhaps there's = already a=20 builtin way to do it?
 
Jack
------=_NextPart_000_001C_01C195F9.2C513780--