Pattern based substitution

How does pattern based substitution works ?

For example, how does textilize replace all occurrences of *hello world*
with <strong>hello world</strong> ?

Thanks

···

--
Posted via http://www.ruby-forum.com/.