I need to write a regex to get a alphanumeric or number for the given string in service now
var str1= this is a test 123AXC678
var str2 =this is a test 50072367
The regex should get 123AXC678 and 50072367from the string. String is passed dynamically to the system
I am using regex /[a-zA-Z0-9]*d+[a-zA-Z]/g; however it is returning only aphanumeric but ignoring numbers