Java Number Power powerTrim(String s)

Here you can find the source of powerTrim(String s)

Description

power Trim

License

Apache License

Declaration

public static String powerTrim(String s) 

Method Source Code

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

public class Main {
    public static String powerTrim(String s) {
        return s.replaceAll("^\\W+", "").replaceAll("\\W+$", "");
    }/* w  ww  . j  a v  a2 s.  c  o m*/
}

Related

  1. powerOfTwo(int current, int desired)
  2. PowerOutageDistr()
  3. powerString(int power)
  4. powerString(int power)
  5. powerToInteger(String pow)
  6. powerType(float power)
  7. powerX(long a, long b)
  8. powExact(long x, int y)
  9. powf(float v1, float v2)