Community
    • Login

    Replacing character in column 1 with FF Character?

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 642 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.
    • RJM 55R
      RJM 55
      last edited by

      How can I scan column 1 of a file and replaced all hits on the # ‘1’ with the ‘FF’ character?

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @RJM 55
        last edited by PeterJones

        @RJM-55

        use regular expression mode in the search

        • FIND WHAT: ^1 will search for lines that begin with the character 1 (which is what I think you meant by “column 1” and “hits on the # ‘1’”
        • REPLACE WITH:
          • If you mean FF as in the hex code 0xFF for the character 255: \xFF will replace that character 1 with the character at codepoint 255
          • If you mean FF as in “Form Feed” at ASCII 0x0C (ASCII 12), then \x0C will do it
          • If you have a different meaning for FF, you will need to be more specific.
        1 Reply Last reply Reply Quote 4
        • RJM 55R
          RJM 55
          last edited by

          This is exactly what I needed! Thank you very much!!!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors