fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text;
  6. //using System.Threading.Tasks;
  7. using System.Text.RegularExpressions;
  8. namespace ConsoleApplication1
  9. {
  10. class Program
  11. {
  12. static void Main(string[] args)
  13. {
  14. string item = @"wewe=23213123i18n("""", test. ),cstr(12),i18n("""",test3)hdsghwgdhwsgd)";
  15. item = @"MsgBox(I18N(CStr(539)," + "Cannot migrate to the same panel type.)" +", MsgBoxStyle.Exclamation, DOWNLOAD_CAPTION)";
  16. string reg1 = @"i18n(.*?),(.*?)\)";
  17. Match match = Regex.Match(item, reg1, RegexOptions.IgnorePatternWhitespace | RegexOptions.IgnoreCase);
  18. while (match.Success)
  19. {
  20. string strVal = match.Groups[0].Value;
  21. Console.WriteLine(strVal);
  22. match = match.NextMatch();
  23. }
  24. }
  25. }
  26. }
Success #stdin #stdout 0.07s 34184KB
stdin
Standard input is empty
stdout
I18N(CStr(539),Cannot migrate to the same panel type.)