// Frog recommendation: Example of positive expression in C #
// I used C # To solve the last problem. paste it first.
// First put all Code Copy and save as arr_reg.cs
// Then compile the following code into the console using CSC Program Then you can see the result. The compilation command is as follows:
// CSC/T: EXE arr_reg.cs
Using system;
Using system. Text. regularexpressions;
Public class regextest {
Public static void wawa_reg (){
String [] arr = new string [15]; // defines a string array.
Arr [0] = "1, Website member management"; // fill the Array
Arr [1] = "2, Administrator permission management ";
Arr [2] = "3. Supply and Demand Information Management ";
Arr [3] = "4. product presentation management ";
Arr [4] = "5. Enterprise window management ";
Arr [5] = "6, credit enterprise management ";
Arr [6] = "7. Expert Database Management ";
Arr [7] = "8, Electronic Journal Management ";
Arr [8] = "9, software download management ";
Arr [9] = "10, industry classification management ";
Arr [10] = "11. Website System Management ";
Arr [11] = "12, special industry management ";
Arr [12] = "13. Talent Recruitment Management ";
Arr [13] = "14, advertising management ";
Arr [14] = "15, project management ";
For (INT I = 0; I <15; I ++) {// traverses the array and outputs the Left and Right Parts of each element.
String S1 = RegEx. Replace (ARR [I], @ "^ (/D *), (. *)/D * $", "$1 ");
String S2 = RegEx. Replace (ARR [I], @ "^ (/D *), (. *)/D * $", "$2 ");
Console. writeline ("/narr [" + I + "]. S1 =" + S1 + "/narr [" + I + "]. S2 =" + S2 );
}
}
Public static void main ()
{
Wawa_reg ();
}
}
// Unfortunately, I still cannot solve this problem using vbs. Alas, I will study it slowly. This week I have been using regular expressions. I still want to learn some views in sqlserver, what about indexing and stored procedures? I don't know if the time is enough.