java.util.regex.PatternSyntaxException: Dangling meta character '*' code example Example: Dangling meta character '?' Java: change .split("?") to .split("\\?")