I’m trying to use Regular Expressions to search all Optional Argument across the solution(all my parameters have the prefix prm).
AccessModifier NameOfMethod(sometype prmParam1, bool prmFlagOrSomething = false)
My E.R is: prm\w+\s=\s\w+
In Notepad++ works fine and catch “prmFlagOrSomething = true”, but when I tried in VS2010, “Ctrl + Shift + F” + “Use: Regular Expressions” don’t find anything.
I need a particular format?
Thanks.
Yes, Visual Studio has its own strange regex dialect, for details see here on msdn
The problem in your expression is that it does not know the predefined classes
\wand\stry (not tested)