Regular Expressions in Ruby
Archive - Originally posted on "The Horse's Mouth" - 2009-07-16 16:01:51 - Graham EllisRuby has a wide variety of string handling methods, and a very strong regular expression engine. In one of the example I wrote today ([link] Regular Expression Example in Ruby) I've included a primer on the elements of a Ruby Regular expression as well as sample source code - showing you how you can match things like email addresses and postcode, and how you can extract the information from different parts of the matches too.
Other new Ruby string handling examples:
[link] Using a string as a collection
[link] Formatted printing in Ruby - printf sprintf and %
[link] Running a piped command via backquotes