java split string on symbols code example Example: how to split string with dolor sign in java String line = ... String[] lineData = line.split("\\$");