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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -