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(/[?&]/);
From novice to tech pro — start learning today.