Create a gist now

Instantly share code, notes, and snippets.

2.0.0-p247 ~
$ irb
irb(main):001:0> line = "foo"
=> "foo"
irb(main):002:0> /\s\d[0-9]{02}\s/.match(line).to_s.to_i > 2
=> false
irb(main):003:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment