replaceAll does not replace anything in the existing String (It can't, because Strings are immutable.) What it does is that it creates a brand new String with replacement as directed.
Try the...
Type: Posts; User: Zaphod_b
replaceAll does not replace anything in the existing String (It can't, because Strings are immutable.) What it does is that it creates a brand new String with replacement as directed.
Try the...