Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. \([^)]*\)
  2.  
  3. String str = "Item A (UNIT OF FACTOR)";
  4. str = str.replaceAll("\([^)]*\)", "");
  5. System.out.println(str);
  6.  
  7. Item A
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement