split on brackets in string java code example Example: split with scquere braket in java line.split("\\[");