Community
    • Login

    Find letter + control characters combination

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 353 Views
    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 WangJ
      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 KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        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
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors