I have to build a utility where I want to do a InitCap on any arbitrary String the user passes.
I looked up all the solution on google seem to be doing it with loops etc. I want to use regex.
Nee help with this .. Example String is " hello world 12ab AAA ".
I want to preserve the leading and trailing spaces.