Is there any reason why Visual Studio uses such a strange syntax (for instance in the search/replace dialog)?
Instead of writing \s*(\w+) = new Process\(\)
I have to write :b*{:a+} = new Process\(\)
.
I am always struggling with this syntax - especially since the normal .NET syntax is the former one.
This is an incomplete comparison between the two syntaxes:
What Visual .NET Comment
Studio
----------------------------------------------------------------
Tab/Spaces :b \s Either tab or space
Alphanumeric :a \w ([a-zA-Z0-9])
Subexpression {} ()
Substitution \n $n Substitutes the substring matched
by a numbered subexpression.
Backreference \n \n Matches the value of a numbered
subexpression.
----------------------------------------------------------------
See here (Visual Studio, C#) for more information.
Is there any reason for this? Is it historical? Is there any advantage?