I'm not sure if this is the place to ask... it is php related though.
I'm trying to come up with a regular expression. Here's the scenario. I'm pulling addresses from an xml file.
Using xsl, I transform it to...
Of course, when displayed on the screen, both lines appear as one.
So...
How do I, using a regular expression, find
"<address>[bunch of text]</address>"
and convert the "\n" to "<br />"s???
Thanks in advance!
I'm trying to come up with a regular expression. Here's the scenario. I'm pulling addresses from an xml file.
Code:
<addressList>
<thisIsAnAddress>
blah blah
blah blah blah
</thisIsAnAddress>
...
</addressList>
Using xsl, I transform it to...
Code:
<address>
blah blah
blah blah blah
</address>
Of course, when displayed on the screen, both lines appear as one.
So...
Code:
$output = [xsl transformation]
//convert "\n" in <address> tags to <br />
print $output
How do I, using a regular expression, find
"<address>[bunch of text]</address>"
and convert the "\n" to "<br />"s???
Thanks in advance!