stripBack
public static String stripBack(String s,
String remove)
General-purpose utility function for removing
characters from back of string
s
- The string to processremove
- A string containing the set of characters to remove
- The resulting string
stripBack
public static String stripBack(String s,
char c)
General-purpose utility function for removing
characters from back of string
s
- The string to processc
- The character to remove
- The resulting string
stripFront
public static String stripFront(String s,
String remove)
General-purpose utility function for removing
characters from front of string
s
- The string to processremove
- A string containing the set of characters to remove
- The resulting string
stripFront
public static String stripFront(String s,
char c)
General-purpose utility function for removing
characters from front of string
s
- The string to processc
- The character to remove
- The resulting string
stripFrontBack
public static String stripFrontBack(String src,
String head,
String tail)
General-purpose utility function for removing
characters from the front and back of string
head
- exact string to strip from headtail
- exact string to strip from tail
- The resulting string