I want to format strings in different cases like Camel or Snake case etc. I have written the unicode regex in a helper function and it performs as expected, for example: