Home > Net >  A regular expression ~
A regular expression ~

Time:01-23

Rules are as follows: key User

In front of the User if there is one ". ", it must be this. The User, other XXX. The User can not match to the;

Behind the User space can be arbitrary, but it can't have "& gt;" And any other characters; That is said & lt; User> Or User User=new User () can not be matched;

 
Public class User
{
Public string AAAAA.

}

Public class Test
{
Public User User;

Private void test ()
{

The User user1=User;

User User=this. The User;

String BBB=this. User. AAAAA;

List The users=new List (a);
}
}



As shown in figure green, is the need to match the red can not be matched to the

  •  Tags:  
  • C#
  • Related