/.*(\d)/
/(\d)\D*$/
If you're looking for a match toward the end of a string, the .* version will be faster.
If you're looking for a match toward the end of a string, the .* version will be faster.