ruby can index strings by regexp! blodgett LIIIIKES IT :D
irb(main):001:0> 'number 123 yah yah yah yah yah'[/\d+/]
=> "123"
ruby can index strings by regexp! blodgett LIIIIKES IT :D
irb(main):001:0> 'number 123 yah yah yah yah yah'[/\d+/]
=> "123"
I saw this in the Matlab-Cow script and was going to ask what it did but now I know.
hmm, maybe blodgett should post that also for the informations of other people suffering from curse of matlab