Use Java and Regex to extract the last portion of a ID number

Find a pattern in a string with a combination of Java or R


This is a companion discussion topic for the original entry at https://kni.me/w/JYTtfwZ7TaMCoBiR