...

View Full Version : How to replace a charater from end a multiline text using php ?



shanil
02-23-2012, 12:55 PM
Hi All,

I have a multi line text , i want to remove the '=' sign and space at the end of the each line. How can i remove that '=' sign , there is no \n or <br> to check the new line .
How can be done this using php.If anyone knows please help me.. Thanks in advance..

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.=
w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=3D"http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-8" />
<title>title here</title>
</head>
<body>

<table width=3D"650" border=3D"1" cellpadding=3D"0" cellspacing=3D"0" align=
=3D"center">=20
<tr> <td>

<table width=3D"650" border=3D"0" cellpadding=3D"0" cellspacing=3D"0" align=
=3D"center">
<tr>
<td colspan=3D"3">
<a href=3D"http://e.ccialerts.com/a/hBNCRBwB8N6AvB8WQuONhRMu1Sp/cnyb8a"><im=
g src=3D"http://f.chtah.com/i/10/2084020271/12.15.10_book_header.gif" width=
=3D"650" height=3D"300" alt=3D"Subscribe to Business for=
=03 only $29.95 and get the Lists=03with your paid subscript=
ion! " border=3D"0"></a></td>
</tr>

Nightfire
02-23-2012, 01:00 PM
Probably could be done with regex, but I'm hopeless with that. There's also 3D showing after every = that is supposed to be there

eg: <html xmlns=3D"http://www.w3.org/1999/xhtml">

Dormilich
02-24-2012, 08:03 AM
if there's no \n or <br>, how do you know it's a line end.

PS. please do not cross-post



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum