Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \([^)]*\)
- String str = "Item A (UNIT OF FACTOR)";
- str = str.replaceAll("\([^)]*\)", "");
- System.out.println(str);
- Item A
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement