How do I replace an all caps string with the corresponding pascal case version? For example, If I have these strings:
SOMETHING_COOL SOMETHING_LESS_COOL WHATEV
I want this output:
SomethingCool SomethingLessCool Whatev
I got this far with the regex:
^*public\s[\w-]+?(\?)?\s[A-Z]+?(_[A-Z]+)?(_[A-Z]+)? { get; set; }
...which I think works for all cases I need. The real question is how to replace the matches with the corresponding pascal case.
EDIT: I will be using .NET/C# looking at files