Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. String test = "<li>stuff here</li>" ;
  2. String[] split = test.split("(<.*?>)");
  3. System.out.println(Arrays.toString(split));
  4.  
  5. [, stuff here]
  6.  
  7. <li>
  8. </li>
  9. <title>
  10. <div id="todeloot">
  11. </tr>
  12.  
  13. <html><body><H1>hello world</h1><li>list item 1</li><li>list item 2</li> well that was my list.</body></html>
  14.  
  15. [, , , hello world, , list item 1, , list item 2, well that was my list.]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement