Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- String strTest = "the fb-group phpandjava the devs is the crap because the they have banned my the main account because the i reported ~15 posts as the spam";
- System.out.println("Before: "+strTest);
- String regex = "\\s*\\bthe\\b";
- strTest = strTest.replaceAll(regex, "");
- System.out.println("After: "+strTest);
- }
Advertisement
Add Comment
Please, Sign In to add comment