Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package parser;
- public class Main {
- static String paragraph = "something along thel ines of we have employees inactive make them active 167843 bob bob 297612 oh and also danny joes 45210 orange peel thanks you";
- public static void main(String args[]){
- String[] results = paragraph.replaceAll("\\D+"," ").split(" ");
- for (String s: results){
- System.out.println(s);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement