Loading ...
Sorry, an error occurred while loading the content.

Search and replace with match

Expand Messages
  • ssalter2006
    I ve got groups of radio buttons named like this:
    Message 1 of 2 , Jun 13, 2006
    • 0 Attachment
      I've got groups of radio buttons named like this:

      <td><input type=radio name=rad1 value=4></td>
      <td><input type=radio name=rad1 value=3></td>
      <td><input type=radio name=rad1 value=2></td>
      <td><input type=radio name=rad1 value=1></td>

      Goes from rad1 to rad45 groups.

      and I'd like to change the "rad" to "Question" but keep the number, ie:
      rad1 group turns into Question1 group.

      I can match the "rad" with this: name=rad*[0-9] but how do I do a
      replace that keeps the radio button group number?

      Thanks.
    • Getafixx
      Search for rad([0-9][0-9]*) replace with question 1 Justin -- Justin / Getafixx Download Getafixx s latest ambient electronic mix - Ideomotor Action
      Message 2 of 2 , Jun 13, 2006
      • 0 Attachment
        Search for rad([0-9][0-9]*)
        replace with question\1

        Justin
        --
        Justin / Getafixx
        Download Getafixx's latest ambient electronic mix - Ideomotor Action

        http://getafixx.com/music/mixes/ideomotor_action/

        http://getafixx.com - aural bliss
        http://getafixxhosting.com for really cheap web hosting

        ssalter2006 wrote:
        > I've got groups of radio buttons named like this:
        >
        > <td><input type=radio name=rad1 value=4></td>
        > <td><input type=radio name=rad1 value=3></td>
        > <td><input type=radio name=rad1 value=2></td>
        > <td><input type=radio name=rad1 value=1></td>
        >
        > Goes from rad1 to rad45 groups.
        >
        > and I'd like to change the "rad" to "Question" but keep the number, ie:
        > rad1 group turns into Question1 group.
        >
        > I can match the "rad" with this: name=rad*[0-9] but how do I do a
        > replace that keeps the radio button group number?
        >
        > Thanks.
        >
        >
        >
        >
        >
        >
        >
        >
        >
        > http://www.editplus.com
        > Yahoo! Groups Links
        >
        >
        >
        >
        >
        >
        >
        >
        >
        > .
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.