SyntaxFix
Write A Post
Hire A Developer
Questions
Actually it has been worked but
just try this.
take the value /\s/g into a string variable like
String a = /\s/g; str = str.replaceAll(a,"X");