I have the following regex string "(\"\--[a-zA-Z]+\")
" but I can not use it since it uses a double quotation.
What are the escape characters I could try here?
I want to use as follows in C# code to filter the "KernalSize" from the following string :
parser.add_argument("--KernalSize", default = 6, help = "Noise removal")
Following filter (\"\--[a-zA-Z]+\")
returns "--KernalSize"
. However, when I try to set the filter in C# code, it failed due to a double quotation sign within the string.
const string ParamNameFilter = @"(\"\--[a-zA-Z]+\")";