I have the following operation which splits a string whenever it encounters an alphabet:
$splitOriginal = preg_split("/[a-zA-Z]/", implode('', array_slice($array, $key)), 2);
I want to extend it in such a way that it splits the string whenever the variable encountered is NOT a number, bracket, plus sign, hyphen, newline or tab.
I have written a regex which can match the above:
preg_match('/^(?=.*[0-9])[- +()0-9\r\n\t]+$/', $value)
But I need to negate it, to match whenever the value being compared is NOT it. Would really appreciate any prompt help I can get.
Thank you.