我有字符串,该字符串有四种格式:
str = "A. B.C. D, WOW, 'H' BENCH"
str1 = "ABCD WOW BENCH \"k\""
str2 = "A.B.C.D,. WOW 'K' BENCH"
str3 = "ABCD, WOW 'K' BENCH"
字符串将以任何一种格式出现,所以我想要正则表达式,它将分别给出以下结果:
str = "ABCD WOW H BENCH"
str1 = "ABCD WOW BENCH K"
str2 = "ABCD WOW K BENCH"
str3 = "ABCD WOW K BENCH"