Wawa Recommendations: Sec C # Application of the regular expression

  / / Wawa Recommendations: Sec C # Application of the regular expression 
  / / I am the last that problem to solve with C #, posted a first 
  / / First of all, the paper copy of all the code for the preservation of arr_reg.cs 
  / / Then the following code into the console with CSC compiler can see the result after the procedure, the compiler command as follows: 
  / / Csc / t: exe arr_reg.cs 
  Using System; 
  Using System.Text.RegularExpressions; 
  (Public class RegexTest 
  Public static void wawa_reg () ( 
  Arr string [] = new string [15]; / / definition of a string array 
  Arr [0] = "1, member management"; / / fill the array 
  Arr [1] = "2, administrator rights management"; 
  Arr [2] = "3, supply and demand information management"; 
  Arr [3] = "4, Product Management"; 
  Arr [4] = "5, Qiyezhichuang management"; 
  Arr [5] = "6, credit business management"; 
  Arr [6] = "July, the management experts"; 
  Arr [7] = "8, published in the electronic management"; 
  Arr [8] = "9, downloading software management"; 
  Arr [9] = "10, Category Management"; 
  Arr [10] = "11, website management system"; 
  Arr [11] = "12, estate management characteristics"; 
  Arr [12] = "13, HR management"; 
  Arr [13] = "14, advertising management"; 
  Arr [14] = "15, project management"; 
  For (int i = 0; i <15; i + +) (/ / iterate, the output of each element of the left and right 
  Regex.Replace string s1 = (arr [i], @ "^ (\ d *),(.*) \ d * $" and "$ 1"); 
  Regex.Replace string s2 = (arr [i], @ "^ (\ d *),(.*) \ d * $" and "$ 2"); 
  Console.WriteLine ( "\ narr [" + i + "]. S1 =" + + s1, "\ narr [" + i + "]. S2 =" + s2); 
  ) 
  ) 
  Public static void Main () 
  ( 
  Wawa_reg (); 
  ) 
  ) 
  / / Unfortunately, I can not be resolved with VBS or ah, ah, it slowly on this week basically Gudao the regular expression, and would like to learn little SQLSERVER originally in the view of indexing and storage process, it also know that time is not enough not enough 

Bookmark it: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Google
  • DotNetKicks
  • DZone
  • Furl
  • Netvouz

Tags:

Releated Articles


0 Comments to “Wawa Recommendations: Sec C # Application of the regular expression”

No Comments. Send your comment.

Leave a Reply

You must be logged in to post a comment.