c# - Replace all attributes in Visual Studio -


i have many cs files, next annotation:

[js(md.pr, imo = false, tr="csc")] 

where tr value changed between each cs file.

i want delete these annotation automaticlly. try use "replace all" in visual studion, when choose regular expressions function. wrote:

find what: [js*] replace '' 

and finds many characters in code, don't want delete.

how can it?

i think you're looking following regex:

\[js.*\] 

the char [ special char in regex, has escaped.

\[ = [

. = matches single character except line break.

* = matches 0 or more occurrences of preceding expression, , makes possible matches.

more information surf to: http://msdn.microsoft.com/en-us/library/2k3te2cs%28v=vs.100%29.aspx


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -