language: C# (mono-2.8)
date: 248 days 23 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
using System;
using System.Text.RegularExpressions;
 
public class Test
{
        public static void Main()
        {
                var rx = new Regex("^1+");
                var s = "11111aA$xx1111xxdj$%%";
                var res = rx.Replace(s, "");
                Console.WriteLine(res);
        }
}