Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. [^./]+$
  2.  
  3. \.([^.]*)$
  4.  
  5. String splitted = myStr.split("\.");
  6. String myStr = splitted[1];
  7.  
  8. .(.+)
  9.  
  10. private static final Pattern AFTER_DOT = Pattern.compile("[^.]+\.([^.]+)");
  11.  
  12. //
  13. final Matcher m = AFTER_DOT.matcher(input);
  14. return m.matches() ? m.group(1) : null;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement