I have a string that I read in from a text file in the format of:
string1|string2|string3|string4|...
where '|' is the delimiting character. i need to come up with a regular expression that will allow me to parse these strings with ereg to put into an array.
so far I have something like
ereg("(^.|.*)|(^.|.*)|(^.|.*)", $BUFFER, $temparray);
But this must be wrong can someone help me?
thanks.
string1|string2|string3|string4|...
where '|' is the delimiting character. i need to come up with a regular expression that will allow me to parse these strings with ereg to put into an array.
so far I have something like
ereg("(^.|.*)|(^.|.*)|(^.|.*)", $BUFFER, $temparray);
But this must be wrong can someone help me?
thanks.