我有一个这样的文本文件
John Doe;john Doe is ...;he lives in ...
Mike Nelson;mike Nelson works for ...;he makes ...
Marcy William;marcy's mother is ...;marcy travels a lot...
Run Code Online (Sandbox Code Playgroud)
我想将分号后面的每个字符都转换为大写,所以最终结果是
John Doe;John Doe is ...;He lives in ...
Mike Nelson;Mike Nelson works for ...;He makes ...
Marcy William;Marcy's mother is ...;Marcy travels a lot...
Run Code Online (Sandbox Code Playgroud)
保持其余的完好无损。
此文件包含带重音的字母并以 UTF-8 编码。