Code number detection implement with re only

Cleaner clearer way to find the code number