java - Why do ";" and "\\;" find the same?

I just found Java code like this:"bla;bla;bla".split("\\;");It returns:["bla","bla","bla"] // String array of courseString.split does use regex, but from my research I found that ; is not a special character in regex and doesn't have to be escaped. So I tried replacing it with:"bla;bla;bla;".split(";");and it still does the same! So what is happening here? Is Java trying to be nice and ignores a useless backslash in the regex? But I tried it with Notepad++, too, and there it also both finds a single semikolon....Read more