Advertisement
AZANIR

parse-1

Nov 30th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1. var parse = @"{-Page.Text-}";// или замени на свою переменную, если не будет работать.
  2. string clear_text = "";
  3. List <string> tmp_Chase = Regex.Matches(parse, @"Chase.*?\$[0-9]+\.[0-9]+").Cast<Match>().Select(y=>y.Value).ToList();
  4. project.SendInfoToLog(tmp_Chase.Count.ToString());
  5. for (int x=0; x<tmp_Chase.Count; x++){
  6.     var tmp_item  = tmp_Chase[x];
  7.     string clear_item = Regex.Replace(tmp_item,@"Last\ sync.*?Unlink\ ","");
  8.     clear_text = clear_text + clear_item + "\n";
  9. }
  10. project.SendInfoToLog(clear_text);
  11. return clear_text;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement