I have ah HTML file. CSS is at the beginning of the document, within tags. I need to get the class names of those classes that are located between comment tags
/* target >> */
.oneClass { ... }
.anotherOne { ... }
/* target << */
I need to put the class names into an array
var myArray = new Array("oneClass","anotherOne " ...);
I can not really use anything server side scripting and is pretty much limited to basic JS. I assume I need some sort of regex, but this is way outside of my competency. Need some help.
scriptelement, regex out that info (or sift thru it)