I'm trying to use regex to grab the last 3 digits of a string that varies in size. The beginning of the string always leads with name- Examples:
"Name-0000425" "Name-00123" "Name-123"
I want the regex to grab the last 3 digits of this number and replace it with these digits. This is the regex I have tried but it only grabs the first 3 digits.
(?-s)(?<=Name-)(\d{3})
Any help would be appreciated! Thanks!