I have the following URL
https://website.com?id=XXXVVVCCCHHH
I only want XXXVVVCCCHHH
, I've tried the following:
var phrase = 'https://website.com?id=XXXVVVCCCHHH';
var myRegexp = /id=(.*)/;
phrase = myRegexp.exec(phrase);
But this is returning: id=XXXVVVCCCHHH
;
How can Ii edit this to only return XXXVVVCCCHHH
?