S
Simon Strandgaard
I am working on a regexp engine written entirely in Ruby.
I wish to test it against the rubicon testsuite, its using $& and $1-$9
heavily.
How do I assign my regexp-result to $& ?
irb(main):001:0> $& = "test"
SyntaxError: compile error
(irb):1: Can't set variable $&
from (irb):1
irb(main):002:0>
I wish to test it against the rubicon testsuite, its using $& and $1-$9
heavily.
How do I assign my regexp-result to $& ?
irb(main):001:0> $& = "test"
SyntaxError: compile error
(irb):1: Can't set variable $&
from (irb):1
irb(main):002:0>