Please note that I don't know what the full class I'm wanting to isolate is, only its format, which is for example:
class="loadable context-enc encounterTimelineEncounterDateitem"
What I'm looking for is context-enc or something that matches:
.match(/\bcontext-[a-z]+\b/)
and it's really the [a-z]+ part that I want to discover. I don't want to so much test whether there IS a class in there that matches, but want to know what the string after "context-" is (in this case 'enc'). Something like:
function getcontext(class, 'context-'){ .. }