squeeeee

ruby can index strings by regexp! blodgett LIIIIKES IT :D

irb(main):001:0> 'number 123 yah yah yah yah yah'[/\d+/]
=> "123"

2 Responses to “squeeeee”

  1. cakesniffer says:

    I saw this in the Matlab-Cow script and was going to ask what it did but now I know.

  2. blodgett says:

    hmm, maybe blodgett should post that also for the informations of other people suffering from curse of matlab