Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public static void main(String[] args) {
  2. Matcher m = Pattern .compile("^(.*?[.].*?[.].*?[.].*?)[.].*")
  3. .matcher(
  4. "com.SEM.Google.Generico.space.test");
  5. if (m.matches()) {
  6. System.out.println(m.group(1));
  7. }
  8. }
  9.  
  10. $project: {
  11. pathString: {
  12. $substr: ["$path.dv", 0, 23]
  13. }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement