Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [^./]+$
- \.([^.]*)$
- String splitted = myStr.split("\.");
- String myStr = splitted[1];
- .(.+)
- private static final Pattern AFTER_DOT = Pattern.compile("[^.]+\.([^.]+)");
- //
- final Matcher m = AFTER_DOT.matcher(input);
- return m.matches() ? m.group(1) : null;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement