I have a flatfile database and it is data seperated by delimiters.
I allow people to use the delimiter in their input but I make sure to escape it with a
Use preg_split instead. By using a regex you can match a delimeter only if it is not preceded with a backslash.
preg_split('~(?<!\\\)' . preg_quote($delimeter, '~') . '~', $text);