2 comments
Hi!
Shouldn’t we write \d+ in this #scan method?
When I tried in IRB simple example: "21.mp3".scan(/d+/) I got empty array with Ruby 2.1.4. As far as I remember special RegEx symbols were needing in backslash \ before them.
Trying out with "21.mp3".scan(/\d+/) everything was working as supposed.
Hey,
You are right
I think the \ got lost when moving the blog data to a new server.