added Regex for the courses

hi, 
Thanks a lot for your guidance.
frankly speaking, I understood only half of it and changed the bit that I understood was the problem. Just want to get used to it, so please feel free to criticize.
regards