Stuart
It prevents you from doing stupid little mistakes that take you hours to
find out...
you can even debug you regex and learn a lot!
ruby (and lot's of other languages / regex flavours) got some decent
support and
you can even create fancy little code snippets with it!
regards
Peter
Stuart
There's also RegexpCoach
http://weitz.de/regex-coach/
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
book.
Kind regards
robert
--
Have a look: http://www.flickr.com/photos/fussel-foto/
--Craig
> "Simon Strandgaard" <neo...@gmail.com> writes:
>
>> Have a look here:
>>
>> http://www.geocities.jp/kosako3/oniguruma/doc/RE.txt
>
> 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
>
> But:
>
> 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
<g>
Have a look here:
http://www.geocities.jp/kosako3/oniguruma/doc/RE.txt
--
Simon Strandgaard
>There's also RegexpCoach
>http://weitz.de/regex-coach/
and redet:
http://billposer.org/Software/redet.html
http://home.cogeco.ca/~tsummerfelt1
ROVING SWARM: http://groups.yahoo.com/group/roving_swarm/
telnet://ventedspleen.dyndns.org