How to find the number after a specific string?

For example, there is the url:
domain/services/id=1
How to use regular expressions(or other method) to safecity out the number 1? What to it have id=
March 19th 20 at 08:55
1 answer
March 19th 20 at 08:57
Solution
str.match(/id=(\d)/)[1];

Find more questions by tags Regular expressionsJavaScript