Struggling with a GreaseMonkey script and need help with a REGEX to extract the ID from a URL of an article.
Here is an example URL:
I want to extract the ID at the end after the comma: 272317
I tried using this REGEX: (,([\d]+)) to only capture digits after the comma, which gave me ,272317 but I don't want the comma at the beginning.
Any suggestions on how to improve my REGEX?
Thank you in advance :)