const str =
'Not on one's own (oneself) different from one's own voice Sunburn (moxibustion) hands can be hot;
for(const s of str.split('\n')) {let p = /([\d\.\u4e00-\u9fa5]+)\(([\u4e00-\u9fa5]+)\)([\u4e00-\u9fa5]+)? /;
let a = p.exec(s);
console.log(a[1].slice(0,-a[2].length) + a[2] +"()"+ (a[3]? a[3] :' '));
}
Copy the code
The output:
183.Not by oneself ()184.One () in unison185.Circumstantial evidence () quoted extensively186.Moxibustion () hands can be hotCopy the code