irb main 001 Hello world scan or irb main 002

1
2
3
irb(main):001:0> "Hello world".scan(/o./)
=> ["o ", "or"]
irb(main):002:0>