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 VS .Net comment 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 subexpr. Backreference \n \n Matches the value of a numbered subexpression
See here (Visual studio, C#) for more informations.
Is there any reason for this? Is it historical? Is there any advantage?