I have a specific HTML file where the CSS is included at the beginning of the document, enclosed within comment tags. My task is to extract the names of the classes located between these comment tags.
/* target >> */
.oneClass { ... }
.anotherOne { ... }
/* target << */
My goal is to gather these class names and store them in an array.
var myArray = new Array("oneClass","anotherOne " ...);
Unfortunately, I am unable to utilize server-side scripting and must work with basic JS only. It seems like regular expressions might be the way to go, but this is not my area of expertise. Any assistance would be greatly appreciated.