Access the string of a certain network address?

var videoid = url.match(/(?:https?:\/{2})?(?:w{3}\.)?instagram(?:be)?\.(?:com|be)(?:\/p\/|\/)([^\s&]+)/);

assume that the network address is

https://www.instagram.com/p/xxx/?utm_source=ig_web_button_share_sheet

the above rule table can be fetched

xxx/?utm_source=ig_web_button_share_sheet

but how to write: all I have to do is fetch xxx ? There is no need for

in the back.
xxx

/\/([^/?]+)\/?(?:\?.*)?$/
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b6b2-2c274.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b6b2-2c274.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?