I have a String = \"Hello-new-World\". And when i use the split() method with different regex values, it acts differently.
String str = \"Hello-new-world\" Strin
It is a metacharacter. Escape it with a backslash, like this: "\\|"
"\\|"