I am trying to always convert a string based on the first 2 capitalized letters and then hyphenate those 2 words and ignore everything after.
so SourceSansPro-ExtraLight
would be source-sans
I was able to use split
to remove the hyphen and then ignore everything after it can't account for the other part, which is just paying attention to the first 2 capitalized words.