Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Find letter + control characters combination

    Help wanted · · · – – – · · ·
    2
    2
    50
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • June Wang
      June Wang last edited by June Wang

      I want to replace combination of letter/number and control characters, i.e. replace gf65nxA7xE2 with gf65nBlah , where xA7, xE2 are control characters. Right now the control characters appear as diamonds in search box. Is there a way to do this in Notepad++?

      Alan Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        Alan Kilborn @June Wang last edited by

        @June-Wang

        “Control characters”…hmmm.

        Well, as long as you’re sure that you know your data, and what you’re doing, you might have luck in Regular expression replacement where you set the Search mode that way.

        Then you could do:

        find: gf65n\xA7\xE2 <- note the \x before the A7 and E2
        repl: gf65nBlah
        mode: regular expression

        But this whole thing makes me a big nervous. :-)

        Since it appears you may not be working with true text data, perhaps a true hex editing program would be a better choice than Notepad++ for these manipulations.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors