Could someone please help me identify the issue with this JavaScript code?
"http://www.imdb.com/title/tt2618986/".match("~http://(?:.*\.|.*)imdb.com/(?:t|T)itle(?:\?|/)(..\d+)~i");
I tested it here https://regex101.com/r/yT7bG4/1 and it worked fine, but not in my JavaScript application.