Snippets has posted 5883 posts at DZone. View Full User Profile
snippet to surround a tag with â€œsmart quotesâ€ if it contains any odd characters. i.e. to display tags entered in a flickr-like style (space separated except inside quotes)
tag.gsub(/^/,'“').gsub(/$/,'”') if tag.match(/[^A-Za-z0-9\-_.]/)
Discover best practices and the most useful tools for building the ideal integration architecture.
DZone's 170th Refcard is an essential reference to Camel, an open-source, lightweight, integration library. This Refcard is authored by...