Advertisement
Guest User

z

a guest
Jan 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. package parser;
  2. public class Main {
  3.     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";
  4.     public static void main(String args[]){
  5.         String[] results = paragraph.replaceAll("\\D+"," ").split(" ");
  6.         for (String s: results){
  7.             System.out.println(s);
  8.         }
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement