JulianD
04-17-2004, 07:17 PM
Hi.
I'm a completely noob when it comes to regexp, so I guess I can post here for a little help :p
I need to replace all the <br /> on a variable to simple line breaks (\n). The problem is that I need to replace the <br />'s that are ONLY inside a special tag, for example, the <myhtml> and </myhtml> tags.
See:
<html>
<head><title></title>
</head>
<body>
.
.
.
<myhtml>
Here is some text<br />
and some more text<br />
Bye.
</myhtml>
.
.
.
</body></html>
So, what I want is to convert all the <br />'s inside the <myhtml> tags to simple line breaks.
Is that possible? Please help!!
I'm a completely noob when it comes to regexp, so I guess I can post here for a little help :p
I need to replace all the <br /> on a variable to simple line breaks (\n). The problem is that I need to replace the <br />'s that are ONLY inside a special tag, for example, the <myhtml> and </myhtml> tags.
See:
<html>
<head><title></title>
</head>
<body>
.
.
.
<myhtml>
Here is some text<br />
and some more text<br />
Bye.
</myhtml>
.
.
.
</body></html>
So, what I want is to convert all the <br />'s inside the <myhtml> tags to simple line breaks.
Is that possible? Please help!!