What exactly is the problem, does the split throw an error, is the result not what you expect or is it something else? Looking at your code, I would say the following:
Your first one appears to be syntactically invalid.
Your second one is aways true. Either change both '!=' to '=', or change the OR to AND.