Frog recommendation: an example of positive expression in C #

Source: Internet
Author: User

// 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.