0

I have certain text added to all my files. I want to delete that from my files. The text is

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
</head>
<body>


<form enctype="multipart/form-data" action="/encryption/index.php" method="POST">



</form>  

I want to include everything after but not above it. How can I do that

ThiefMaster
  • 310,957
  • 84
  • 592
  • 636
Asim Zaidi
  • 27,016
  • 49
  • 132
  • 221

1 Answers1

2

Use a PHP DOM Parser or lose your hair with Regex.

I recommend the DOM parser.

Community
  • 1
  • 1
alex
  • 479,566
  • 201
  • 878
  • 984