Course numbers cannot only contain digits but also letters. Replacing \d for digits with \S for any non-whitespace character does the trick.
Course numbers cannot only contain digits but also letters. Replacing \d for digits with \S for any non-whitespace character does the trick.