Servicenow regex to get a specific value from a string

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 50072367 from the string. The 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 alphanumeric but ignoring numbers