Search for top of file?
Posted: Wed Feb 03, 2010 5:54 pm
Hello,
I am having a strange problem with WE.
I am looking to replace:
<html>
<head>
Which begins the files to be corrected, and to replace with:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" type="text/css" href="../../admin/styles/common.css" />
<title></title>
</head>
<body>
<div class="ctr">
<center>
<table cellspacing="0" cellpadding="6" width="80%">
<tr>
<td>
I am able to do this in a test file, but when it comes to the actual files I get no files matching.
I suspect some sort of quirk with regard to coding or some such, but I would only really like a solution. Is there a way for me to insert this doctype information at the start of the first line on a file, without reference to anything but the beginning of the first line to search for?
Search: ^ ?
I am having a strange problem with WE.
I am looking to replace:
<html>
<head>
Which begins the files to be corrected, and to replace with:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" type="text/css" href="../../admin/styles/common.css" />
<title></title>
</head>
<body>
<div class="ctr">
<center>
<table cellspacing="0" cellpadding="6" width="80%">
<tr>
<td>
I am able to do this in a test file, but when it comes to the actual files I get no files matching.
I suspect some sort of quirk with regard to coding or some such, but I would only really like a solution. Is there a way for me to insert this doctype information at the start of the first line on a file, without reference to anything but the beginning of the first line to search for?
Search: ^ ?