fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone {
  6. public static void main (String[] args) throws java.lang.Exception {
  7. String text = "some html with many links like http://m...content-available-to-author-only...l.ru test";
  8. String[] res = text.split("http://mail\\.ru");
  9.  
  10. for (String s : res) {
  11. System.out.println(s);
  12. }
  13. }
  14. }
Success #stdin #stdout 0.08s 27888KB
stdin
Standard input is empty
stdout
some html with many links like 
 test