Hi David,
I tried your script and got an error:
/Users/erichsu/Library/Application Support/TextMate/Bundles/Regular Expressions.tmbundle/Tools/rx_helper.rb:62:in `prepare_rx': undefined method `match' for #String:0xc400c (NameError) from /Users/erichsu/Library/Application Support/TextMate/Bundles/Regular Expressions.tmbundle/Tools/rx_helper.rb:45:in `initialize' from /Users/erichsu/Library/Application Support/TextMate/Bundles/Regular Expressions.tmbundle/Tools/rx_helper.rb:114:in `new' from /Users/erichsu/Library/Application Support/TextMate/Bundles/Regular Expressions.tmbundle/Tools/rx_helper.rb:114
when running on your sample text.
Any thoughts? I want to put this into the svn repository when it's working. If it matters, I'm running:
ruby 1.6.8 (2002-12-24) [powerpc-darwin7.0] which lives at /usr/bin/ruby
best, Eric