DZone 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
A Basic Regex Example In Ruby
This is a simple regex in ruby. It returns an array of all bbcode urls.
bbcode_urls = text.scan(/\[url={0,1}.*?\].*?\[\/url\]/)





