HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 146151 thumbnail
User 111696 avatar

By bloid
via jroller.com
Published: Jan 05 2009 / 14:33

This little Ruby program makes it easier to experiment with regular expressions. The first bit sets up a hash with strings as the keys and regular expression patterns as the values. The next part loops until the input line matches "quit". Each time through, it compares the input line to each regular expression in turn.
  • 6
  • 3
  • 1222
  • 0

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (6)



Voters Against This Link (3)