Java examples for java.lang:String Strip
remove Leading Spaces with regex
//package com.java2s; public class Main { public static String removeLeadingSpaces(String in) { return in.replaceAll("^[\\s]+", ""); }/* w ww. jav a 2 s . co m*/ }