regex to get the number from the end of a string

Viewed 59026

i have a id like stringNumber variable like the one as follows : example12 I need some javascript regex to extract 12 from the string."example" will be constant for all id and just the number will be different.

2 Answers
Related