Hi,
I've got a flat file such as:
<TITLE>Thursday 3rd March</TITLE><USER>Paul Smith</USER><ADDRESS>3, battersea square - SW12 3GE London - UK</ADDRESS>
I would like to retrieve the value of the parameters, i.e. have
$title='Thursday 3rd March'
$user='Paul Smith'
$address='3, battersea square - SW12 3GE London - UK'
So I tried the regular expression such as:
$title=preg_replace("'<TITLE[>]?>.?</TITLE>'", "\1", $file);
But it gives me a result such as:<USER>Paul Smith</USER><ADDRESS>3, battersea square - SW12 3GE London - UK</ADDRESS>
Anybody can help?
Thanks in advance