Sha256: 14da70b97e788d6b837e4aa22fd3808ff9878c544f7e6468bf930093d595e700

Contents?: true

Size: 255 Bytes

Versions: 4

Compression:

Stored size: 255 Bytes

Contents

class TestRegexp
  def test
    p "okay" if "hallo" =~ /ll/
    pos = "hallo" =~ /ll/
    p pos

    "hallo" =~ /(ll)/
    p $1
    p $2
    p $3

    "hallo" =~ /a(ll)(o)/
    p $1
    p $2
    p $3
    p $4
  end

  def self.main
    new.test
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
superchris-rubyjs-0.8.2 test/test_regexp.rb
rubyjs-0.7.0 test/test_regexp.rb
rubyjs-0.8.0 test/test_regexp.rb
rubyjs-0.7.1 test/test_regexp.rb