Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String test = "<li>stuff here</li>" ;
- String[] split = test.split("(<.*?>)");
- System.out.println(Arrays.toString(split));
- [, stuff here]
- <li>
- </li>
- <title>
- <div id="todeloot">
- </tr>
- <html><body><H1>hello world</h1><li>list item 1</li><li>list item 2</li> well that was my list.</body></html>
- [, , , hello world, , list item 1, , list item 2, well that was my list.]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement