Advertisement
AZANIR

parse-3

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