I am used to writing regular expressions that support multiple options to specify case sensitivity, white space ignoring, meaning of .
etc... In C#, these options are specified with (?i)
, (?x)
and (?s)
respectively.
How can these modifiers be used with Visual Studio Code find functionality? I am getting an error
Invalid regular expression: Invalid group.
Example:
q.*?abc.*?q
will match <q>heheabchihi</q>
, but not
<q>hehe
abchihi</q>
due to the .
not matching all characters (\n
is omitted). Adding (?s)
fixes that in C# regex, but not in Visual Studio Code. What is the Visual Studio Code way of using regex options?