Posted by ofuuzo1 on 12/01/07 00:03
Hi,
I am new to php. I have text files each containing some metadata. I
would like to use preg_replace to remove some of the fields in each
text file. Some contents of a field can go over several lines. How can
I do it using preg_replace?
Thanks in advance
Ofuuzo
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<dublin_core schema="dc">
<dcvalue element="contributor" qualifier="advisor">Test, Testman
several lines several lines several lines several lines several
lines several lines several lines several lines several lines
several lines several lines several lines several lines </
dcvalue>
<dcvalue element="date" qualifier="issued">2007-11-15</dcvalue>
<dcvalue element="format" qualifier="extent">4869077 bytes</
dcvalue>
<dcvalue element="format" qualifier="mimetype">application/pdf</
dcvalue>
<dcvalue element="language" qualifier="iso">nob</dcvalue>
<dcvalue element="subject" qualifier="courseID">NOR-3920</dcvalue>
<dcvalue element="subject" qualifier="departmentID">6640</dcvalue>
</dublin_core>
Navigation:
[Reply to this message]
|