From: Gavin Kistner Date: 2006-10-17T02:28:41+09:00 Subject: Re: Pattern based substitution From: Daniel Mircea > How does pattern based substitution works ? See http://phrogz.net/ProgrammingRuby/tut_stdtypes.html#regularexpressions particularly the section near the end of that page titled "Pattern-Based Substitution". > For example, how does textilize replace all occurrences of > *hello world* > with hello world ? Here's a simple example (probably not what Textilize uses): source.gsub( /\*([^*]+)\*/, '\\1' )