Optimizing some string manipulation
I want to both substring an input string at the last occurrence of
Here's what I've got so far;
However, this is hardly faster than using
Any ideas?
'/' and normalize it into only alphanumeric (a-z, A-Z, 0-9) characters, turning any characters unable to be normalized (meaning characters with diacritics turning into their non-diacritic versions (ä -> a)) into _.Here's what I've got so far;
However, this is hardly faster than using
Substring and Normalize (with some custom code involving CharUnicodeInfo.GetUnicodeCategory).Any ideas?