regular expression now correctly recognizes single-digit characters for ids and adds specs