Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8528449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:48:14+00:00 2026-06-11T08:48:14+00:00

Unfortunately, due to bad planning I need to edit a huge html form, field

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T08:48:15+00:00Added an answer on June 11, 2026 at 8:48 am

    In your IDE of choice perform a Regex Find & Replace with find pattern:

    <input name="(.*)" class="(.*)" size="20">
    

    and replace pattern:

    <input name="$1" <?php if ($u==TRUE) echo "value='$row['$1']'"; ?> class="$2" size="20">
    

    Just worked for me in Textmate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Unfortunately, I often find I need to reboot to wipe some unhealthy Xcode state.
I have submitted an app to appstore but unfortunately it got rejected due to
I have a jar file but unfortunately I lost source code due to my
(Before I start, yes I have asked a similar question before; unfortunately due to
Unfortunately the maven initial build is very slow due to artifacts downloading f.e. I've
I think I must be doing something stupid. Unfortunately, due to the nature of
Unfortunately I have a pretty bad understanding of how to properly set up threading.
Due to an absurd SOAP authentication scheme I need to md5 hash an API
Now unfortunately due to the fact that WinCE Usb Device Arrival / Removal exposes
I am learning jQuery and have a created several plug ins. Unfortunately due to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.