fork(3) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string s = "protected void Page_Load(object sender, EventArgs e)\n{\n\tResponse.Write(\"Hello World\");\n}";
  9. Regex regex = new Regex(@"^\t+", RegexOptions.Multiline);
  10. s = regex.Replace(s, m => new string('*', 4 * m.Value.Length));
  11. Console.WriteLine(s);
  12. }
  13. }
Success #stdin #stdout 0.06s 37208KB
stdin
Standard input is empty
stdout
protected void Page_Load(object sender, EventArgs e)
{
****Response.Write("Hello World");
}