public String getAllContent(String content, String globalId) {
Pattern p = Pattern.compile("\$\#.*?\#\$");
Matcher m = p.matcher(content);
while (m.find()) {
String keywrod = m.group();
if (keywrod.equals("$#mobile#$")) {
String mobile ="13111111111";
content = content.replace(keywrod, mobile);
} else if (keywrod.equals("$#mask_mobile#$")) {
String mobile ="131111111111";
if (mobile != null) {
mobile = mobile.substring(0, 3) + "****" + mobile.substring(7);
}
content = content.replace(keywrod, mobile);
} else {
content = content.replace(keywrod, "");
}
}
return content;
}