java replaceall regex any character code example
Example 1: java string regexp replace
String input = "abcd";
Pattern p = Pattern.compile("regexp");
String output = p.matcher(input).replaceAll("replacement");
Example 2: java regex replace all characters before
String s = "the text=text";
String s1 = s.substring(s.indexOf("=")+1);
s1.trim();