fork download
import java.util.*;
import java.lang.*;

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		String s = "11111aA$xx1111xxdj$%%";
		String res = s.replaceAll("^1+", "");
		System.out.println(res);
	}
}
Success #stdin #stdout 0.03s 245632KB
stdin
Standard input is empty
stdout
aA$xx1111xxdj$%%