|
This is the case, I write an expression that matches all the comments in C#
//safdjkas;fjasfj messy comments
//
//
/// <sumary>
/// I don't want to match things here
/// </summary>
public class TessClass//Here are the comments in scribble
{//This is also a note
public string f()//A lot of comments, of course, a bit messy
{
return "";//The ghost knows where his comments are written
} //It's really possible
}
// Finished the comment
______________________________________
1) Only the comments with double slashes are matched, not the summary with three slashes! (To put it bluntly, it is to replace the comments in the program)
I tried what you wrote, and tried it in the search in EditPlus and VS2005 (a regular expression match search is provided above), but the results you wrote did not match.
My question:
Last night I thought I had a problem with the expressions I wrote. Now it seems that they may not provide the function of matching non-acquisition (that is (?|pattern)), anyway (?!pattern) and (?=pattern) You can't get anything.
-------------------------------------------------- --------------
Please give it a try, does the search in EditPlus and VS2005 not provide (?=pattern) and other matches?
Post before 9 o'clock tonight, thank you for your help! |
|