One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
But this code doesn't work when there's https instead of http. How can I make it work with https too? I prefer to keep the split instead of using a regexp if possible.
vimeo_id = message.split(/video\/|http:\/\/vimeo\.com\//).split(/[?&]/);