Hi,
I have written a simple PERL script that uses regular expressions to parse XML documents. I have an XML document whose one element is called <title>. This element contains the title of the document in the form:
<title>Mathematical Spaces in Algebra</title>
I discovered that some documents contain one or more newline characters inside the <title></title> element which I have to remove because I want the whole title to be in one line. I currently read the whole XML into a single variable but I do not know how to remove these newline(s) in a single pass through a regular expression.
Thanks,
Christos