The code below replaces every other whitespace and I am trying to replace every third white space.
String replace = deletedWords.replaceAll("(?<! \\G \\ w+) \\s","_");
![]() |
The code below replaces every other whitespace and I am trying to replace every third white space.
String replace = deletedWords.replaceAll("(?<! \\G \\ w+) \\s","_");
| All times are GMT -7. The time now is 02:45 AM. |