Regex 如何使用正则表达式替换子字符串中的特定字符? 我的目标

Regex 如何使用正则表达式替换子字符串中的特定字符? 我的目标,regex,visual-studio-code,replace,substring,Regex,Visual Studio Code,Replace,Substring,此问题是关于Visual Studio代码搜索框的。 我想用mystring的空格替换my子字符串中的字符“u”来替换所有的“空格” 例如: ->从 { "Show_details": mystring("my substring with spaces"), "Type_of_event": mystring("my substring with spaces2"), } ->到 我试过的 我只得

此问题是关于Visual Studio代码搜索框的。

我想用mystring的空格替换
my子字符串中的字符“u”来替换所有的“空格”

例如:

->从

{
    "Show_details": mystring("my substring with spaces"),
    "Type_of_event": mystring("my substring with spaces2"),
}
->到

我试过的 我只得到了带有空格的“我的子字符串”。但我不明白如何进一步进行。
Search: mystring\("([a-z]*?( )[a-z]*?)"\)
你可以用


Edit->Find In Files
中的regex killer显示错误
regex解析错误:Lookbehind断言不是固定长度的
。知道吗?@micaball是的,不要在Find In Files中使用此regex,它使用不同的regex风格。
Search: mystring\("([a-z]*?( )[a-z]*?)"\)