Ruby.exe svn 149
(Code extract based on ERB.rb)
test = "\n"
matchpos = (test =~ /(.*?)(<%%|<%=|<%#|<%|\n|\z)/)
puts matchpos # <- 0
p $& # <- get "", should be "\n"
puts $&.size # <- get 0, should be 1
matchpos = (test =~ /(\n)/)
puts matchpos # <- 0
p $& # <- get nil, should be "\n"
Original issue reported on code.google.com by djl.rif...@googlemail.com on 25 Oct 2007 at 12:28
Original issue reported on code.google.com by
djl.rif...@googlemail.com
on 25 Oct 2007 at 12:28