fork(6) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. class Program
  5. {
  6. static void Main()
  7. {
  8. string input = "@[User::RootPath]+\"Dim_MyPackage10.dtsx\"";
  9. Match m = Regex.Match(input, @"\[[^[\]]*\]");
  10. Console.WriteLine(m.Value);
  11. }
  12. }
Success #stdin #stdout 0.07s 37192KB
stdin
Standard input is empty
stdout
[User::RootPath]