Unfortunately, due to bad planning I need to edit a huge html form, field by field. But since it’s just find&replace I think I can make the process faster.
So… all the fields looks more or less like this:
<td align="left" width="30%">Incoming date:</td>
<td align="left">
<input name="inc_date" class="frmfixededit" size="20"></td>
</tr>
....
<td align="left" width="30%">Name:</td>
<td align="left">
<input name="name" class="frmfixededit" size="20"></td>
</tr>
What I want to do is change that to this:
<td align="left" width="30%">Incoming date:</td>
<td align="left">
<input name="inc_date" <?php if ($u==TRUE) echo "value='$row['inc_date']'"; ?> class="frmfixededit" size="20"></td>
</tr>
....
<td align="left" width="30%">Name:</td>
<td align="left">
<input name="name" <?php if ($u==TRUE) echo "value='$row['name']'"; ?> class="frmfixededit" size="20"></td>
</tr>
Any advice on how i can accomplish that? I don’t know how to match that
Thanks
In your IDE of choice perform a Regex Find & Replace with find pattern:
and replace pattern:
Just worked for me in Textmate.