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