I have a string str = "Jake!!!Jackson!!!Tyson\\!!!!!!Pete"
I want to split the string by !!! but ignore it if the char before !!! is "\\".
I came up str.split("(?<!\\\\)!!!");
But the output is Jake,Jackson,Tyson\!,!!Pete and the expected output is Jake,Jackson,Tyson\!!!,Pete
Can this be accomplished by regex?