使用 powershell 正则表达式 我希望它找到两个逗号之间或 ," 和 ", 之间的第一个匹配项
例子:
"0x00000000","What do you want to eat? fish, meat or\n eggs?",""
"0x00030002","What do you want to eat?",""
0x00030002,What do you want to eat?,
Run Code Online (Sandbox Code Playgroud)
我希望它变成:
What do you want to eat? fish, meat or eggs?
What do you want to eat?
What do you want to eat?
Run Code Online (Sandbox Code Playgroud)
我尝试了这段代码,但它的行为不正确:
(?<=,"|\?<=,).*(?=",.*?|\?=,.*?)