Search and replace in files - .NET regular expression syntax

I am looking for a decent tool that can search and replace multiple files, with regex syntax that I use C # with. I usually did this in Visual Studio, except that it has the weirdest regex syntax (and that means it's faster than just replacing text in files manually).

So far I have tried windows grep, but below it did not like the regex. In the regular expression in question

<see cref="(?<class>.+)">(.+)</see>

To replace with

<see cref="${class}"/>

Alternatively, converting this to Visual Studio syntax would be great!

Jeff has the entire post on this on his blog.

+3
source share
5

Visual Studio :

\<see cref="{:i}"\>.*\</see\>

:

<see cref="\1"/>

{} - VS. . \n n- find.

:i .*, .

+3

Visual Studio Reg Ex:

\<see cref="{.+}"\>.+\</see\>

:

<see cref="\1" />

"/ " " ".

, , Visual Studio , .Net framework.

+3

:

+3

You can use the .NET Regular Expression AddIn so you can use .NET regular expressions with Visual Studio. This is on CodeProject at http://www.codeproject.com/KB/macros/VS2005RegexAddIn.aspx .

Mike

+1
source

Source: https://habr.com/ru/post/1703892/


All Articles