List of usage examples for java.lang String replace
public String replace(CharSequence target, CharSequence replacement)
From source file:Main.java
public static String unescape(String value, char delimiter) { return value.replace("\\" + delimiter, "" + delimiter); }
From source file:Main.java
public static String formatBluetoothAddress(String address) { return address.replace(":", ""); }
From source file:Main.java
private static String replaceWrongPart(String message) { return message.replace("<?xml version=\"1.0\" encoding=\"UTF-8\"?>", "").replace("\n", "").replace("\t", "");/* www .ja va 2s. c o m*/ }
From source file:Main.java
public static double AmountShowBug(String sum) { return Double.parseDouble(sum.replace(",", "")); }
From source file:Main.java
public static String escape(String value, char delimiter) { return value.replace("" + delimiter, "\\" + delimiter); }
From source file:Main.java
public static boolean checkStrNotEmpty(String str) { if (null != str && !str.replace(" ", "").equals("")) { return true; }/*from w w w . ja v a 2 s . c o m*/ return false; }
From source file:com.talkingdata.orm.tool.ClassUtils.java
public static String capitalizeFully(String name) { name = name.replace("-", " ").replace("_", " "); return WordUtils.capitalizeFully(name).replace(" ", ""); }
From source file:Main.java
public static String parseShotId(String shotURL) { String[] parts = shotURL.replace("https://", "").split("/"); String path = parts[2]; // dribble.com/shots/{id}-title String id = path.split("-")[0]; // {id} return id;//from www . j a va 2 s . c o m }
From source file:Main.java
public static String getThumbUrl(String videoUrl) { videoUrl = videoUrl.replace("moogaloop.swf?clip_id=", ""); int start = videoUrl.indexOf("vimeo.com/") + 10; int end = videoUrl.indexOf("&", start) != -1 ? videoUrl.indexOf("&", start) : videoUrl.length(); return "http://www.abewy.com/apps/klyph/services/vimeo_thumbnail.php?id=" + videoUrl.substring(start, end); }
From source file:Main.java
public static String toStandart(final String name) { String result = name.replaceAll("([a-z\\d])([A-Z])", "$1-$2").replace('_', '-'); result = result.toLowerCase();/* w ww . j a va2 s.co m*/ return result; }