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
  • 298,938
  • 77
  • 579
  • 623
Asim Zaidi
  • 25,390
  • 48
  • 128
  • 219

1 Answers1

2

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

I recommend the DOM parser.

Community
  • 1
  • 1
alex
  • 460,746
  • 196
  • 858
  • 974