Removes Markup From String
Removes any markup from string
@somevar = somestring.gsub(/<\/?[^>]*>/, "")
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
@somevar = somestring.gsub(/<\/?[^>]*>/, "")
preg_match('/^([0-9a-f]{1,2}){3}$/i', $color);
(?m)^@@.*?^(?=@@)