It prevents you from doing stupid little mistakes that take you hours to
you can even debug you regex and learn a lot!
ruby (and lot's of other languages / regex flavours) got some decent
you can even create fancy little code snippets with it!
There's also RegexpCoach
Which is free for private or non-commercial use. I think this is a
good tool for learning as you can investigate closely how a regexp
goes about matching text. If RegexpBuddy has similar functionality
then it's probably equally suited to support learning. And then of
course there is http://www.oreilly.com/catalog/regex/ which is a great
Have a look: http://www.flickr.com/photos/fussel-foto/
> "Simon Strandgaard" <neo...@gmail.com> writes:
>> Have a look here:
> That's nice, but it doesn't document ruby's Regexp engine, at least
> not the one in Ruby 1.8.4; the document says:
> (?<=subexp) look-behind
> irb(main):032:0> Regexp.new('(?<=abc)')
> RegexpError: undefined (?...) sequence: /(?<=abc)/
> from (irb):32:in `initialize'
> from (irb):32
> from :0
> I suspect that this documents what will be, in the Ruby 2.0 that's
> going to have easy built-in support for unicode in all its glory.
> That still leaves the current engine undocumented.
Section A-4 of the above document tells you the differences between
the new regexp engine and the current one. You could do a mental diff
Have a look here: