Replacing Text - masks? or string of text?

2010-06-18
2012-11-13
  • Super Hands

    Super Hands - 2010-06-18

    hi all.

    A quick question that i hope to find an answer for.

    I have 5900 lines of code:

    0x5d300000,1,0,0x03031500,1,0=0x5d300000,1,0,0x5d300000,1,0
    0x5d300000,1,0,0x03031500,3,0=0x5d300000,1,0,0x5d300000,3,0
    0x5d300000,3,0,0x03031500,1,0=0x5d300000,3,0,0x5d300000,1,0
    0x5d300000,3,0,0x03031500,3,0=0x5d300000,3,0,0x5d300000,3,0………………………………

    all i need to do is change 0x5d300000 to 0x5d300600. however, 0x5d3nn000 is the range, and i dont want to change the nn values.

    i'm assuming you use the find/replace function, so is a mask possible say using the # symbol or something? and what would the replace with text look like?

    thanks.

     
  • Dave Brotherstone

    Use the regular expression mode in Find/Replace

    Search : 0x5d3()000
    Replace 0x5d3\1600

    I'm assuming that your "nn" is hex, so digits 0-9 and letters a-f are valid.

    Dave.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks