in reply to Re: Re: Upper case first letter of each _ delimited word
in thread Upper case first letter of each _ delimited word
producesprint ucwords("BATCH_USER_INFO", "_"), "\n"; print ucwords("batch_user_info", "_"), "\n";
In the first case you don't ever lower-case the string; in the second case you don't look for "word" at the beginning of the string, before the delim.BATCH_USER_INFO batch_User_Info
|
|---|