Guest User

Untitled

a guest
Dec 16th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. private static void patternString() {
  2. String str;
  3. str ="123255";
  4. System.out.println(str.matches("(\\W*\\w*)*\\d+"));
  5.  
  6.  
  7. str ="กก";
  8. System.out.println(str.matches("\\D+"));
  9.  
  10. str = "11ๅๅ44ฟฟหหเช็ค";
  11. System.out.println(str.matches("(\\W*\\w*)*\\d+\\D+"));
  12.  
  13. }
Add Comment
Please, Sign In to add comment