Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.27 KB  |  hits: 5  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Using regex in Javascript to match special symbols
  2. var courses = "HTML (Beginner)".match(/w+/g);//gives ["HTML", "Beginner"];
  3. if (courses)//can be null if no word chars found
  4.   for (var i = 0; i < courses.length; i++)
  5.     //look for course[i] in your list of courses