Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- String[] tokens = "aa33aaca^aa".split("[\dc]+");
- for (int i = 0; i < tokens.length; i++)
- System.out.println(tokens[i]); }
- }
- aa
- aa
- a^aa
Add Comment
Please, Sign In to add comment