Java String Trim Left ltrim(String source)

Here you can find the source of ltrim(String source)

Description

ltrim

License

Apache License

Declaration

public static String ltrim(String source) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String ltrim(String source) {
        return source.replaceAll("^\\s+", "");
    }//from   w  w w  .j  a  v a 2  s  .  c  o m
}

Related

  1. ltrim(String s)
  2. ltrim(String s)
  3. ltrim(String s)
  4. ltrim(String s, char character)
  5. ltrim(String s, Character c)
  6. ltrim(String source)
  7. ltrim(String source)
  8. ltrim(String src, char ch, int nLen)
  9. ltrim(String str)