Hi, I'm looking for an elegant way to convert class names with optional namespace prefixes to names for custom html elements.
MYCustomElement and CustomElement to <my-custom-element> and <custom-element> There must be an elegant way to do it with regex or inject, but I'm embarrassed to say I can't get my head around it. I can get it to match the regex '((:isUppercase:+)*)((:isUppercase::isLowercase:+)*)', (if I recall correctly) but can't get a collection of the individual elements 'MY' 'Custom" 'Element' to lowercase and join. Thanks for any hints! cheers Siemen