I need to extract the ID number from a string. The results are given to me in the following format: "Something with some kind of title (ID: 300)" "1, 3, 4 - Something that starts with numbers (ID: 400)" etc..
These values are passed into javascript, which then needs to extract the ID number only, i.e. 300, or 400 in the above example.
I am still struggling with regex, so any help is greatly appreciated. I can easily do this with string operations, but would really like to get my feet wet with RegEx on some actual examples I can use. The online tutorials I've read so far have proven fruitless.
Thank you