I have a php script that logs in to the database of the old ispconfig system and gets the dns_soa records and then queries the database of the new ispconfig system to know if I need to call a new record creation or an edit existing record api call. I'm to the point now where I need to create/update dns zones and the api is telling me that my mbox value is failing regex testing. The new ispconfig system is running 184.108.40.206p8 the email address I'm sending is an email address, and has been validated with every regex I know of to try. It is in the format [3 alpha characters]@[5 alpha characters].org. Its really simple email address and should be validating easily. The data is coming from the database of the old ispconfig server so needs to be sanitized before it can be inserted into the new one. The data starts with a . replacing the @ and a trailing . I'm truncating the last . and substring replacing the . for a @ to get the data to send to the ispconfig api. Can someone tell me what I am doing wrong, or failing that, what I can do about it.