Looking for a way to extract two different IDs from the following string:
SPList:6E5F5E0D-0CA4-426C-A523-134BA33369D7?SPWeb:C5DD2ADA-E0C4-4971-961F-233789297FE9:
using Javascript.
The regular expression being used is :
^SPList\:(?:[0-9A-Za-z\-]+)\?SPWeb\:(?:[0-9A-Za-z\-]+)\:$
, which should ideally result in two matching groups containing the extracted IDs.
Despite attempts, the current code fails to properly extract the IDs as expected. The first match includes the entire string while the second match appears as undefined.
If you have insights on a more effective method to extract these IDs, please share your thoughts.
For further reference, there is a jsfiddle demonstrating the issue at hand.