- Using regex in Javascript to match special symbols
- var courses = "HTML (Beginner)".match(/w+/g);//gives ["HTML", "Beginner"];
- if (courses)//can be null if no word chars found
- for (var i = 0; i < courses.length; i++)
- //look for course[i] in your list of courses