runpaint / read-ruby

Free ebook about Ruby 1.9
http://ruby.runpaint.org/
148 stars 28 forks source link

Regexp: \G is omitted from anchors table/coverage #120

Closed ammar closed 13 years ago

ammar commented 14 years ago

The start of match position anchor \G appears to be supported in ruby 1.9, but is not covered.

>> RUBY_DESCRIPTION
=> "ruby 1.9.2p0 (2010-08-18 revision 29036) [i386-darwin9.8.0]"
>> "foo bar".scan(/\w/)
=> ["f", "o", "o", "b", "a", "r"]
>> "foo bar".scan(/\G\w/)
=> ["f", "o", "o"]

Actually, it appears to be in ruby 1.8 as well.

Cheers and Thanks!

P.S. I wish I could contribute by submitting pull requests, instead of just throwing issues at the project. xslt is somewhat foreign to me.

ammar commented 14 years ago

I just noticed \G listed under Escapes, but I think it should be listed under Anchors as well. Arguable, your call of course.

Thanks

runpaint commented 13 years ago

Regexps: Document \G. Closed by 2b91fd19b74340a23b8872c2ad400085da74cf21.

runpaint commented 13 years ago

I wish I could contribute by submitting pull requests, instead of just throwing issues at the project. xslt is somewhat foreign to me.

The reports are much appreciated. :-) XSLT is indeed torturous, but the chapters themselves are written in Docbook 5, which is basically HTML with more verbose element names.