Update course.php

Uses the regular expression matching to check the given course ID
Merge pull request #3 from chrisforrence/patch-2

Update course.php