this is nor a valid c string literal.Code:"[0|\+27]+[1234][123][-| ]?[0-9]{3}[-| ]?([0-9]{4})$"
If your intention is to escape the + in the character class then you have to double the '\'
e.g.
KurtCode:"[0|\\+27]+[1234][123][-| ]?[0-9]{3}[-| ]?([0-9]{4})$"