Read article Using Regular Expressions to Pack-a-Punch Ruby String Manipulation.
Built By the Slant team