[thelist] RegExp Help
Jake Aust
mail_lists at jakesdiner.com
Thu Apr 18 19:05:00 CDT 2002
Anyone have any idea how I could use RegExp to find and replace and carriage
returns or newline characters that occur in an HTML file in between <p></p>
tags?
I want to take something like this:
----------------
<html>
<head>
<title>My Page</title>
</head>
<body>
<h1>My Header</h1>
<p>This is a
paragraph
that was
typed in with
carriage returns in it
and I
want to remove
all
these
carriage returns</p>
</body>
</html>
----------------
And Turn it into this:
----------------
<html>
<head>
<title>My Page</title>
</head>
<body>
<h1>My Header</h1>
<p>This is a paragraph that was typed in with carriage returns in it and I
want to remove all these carriage returns</p>
</body>
</html>
----------------
More information about the thelist
mailing list