【发布时间】:2023-04-05 02:22:01
【问题描述】:
我有一个类似的字符串:
"Father’s Name : ABC NaskarDate of Birth : 18-01-1979Permanent Address: This is the address field for the personContact Numbers : 98413***28Passport Number:PAN Number: AEFXXXXXXXLanguages Known: Tamil, English"
我想要的输出是:
"|||Father’s Name : ABC Naskar|||Date of Birth : 18-01-1979|||Permanent Address: This is the address field for the person|||Contact Numbers : 98413***28|||Passport Number:|||PAN Number: AEFXXXXXXX|||Languages Known: Tamil, English"
这意味着我想添加“|||”在某些特定字符串(例如父亲的名字)之前, 出生日期等谢谢
【问题讨论】: