Community
    • Login

    Replacing character in column 1 with FF Character?

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 1.2k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          RJM 55
          last edited by

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

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors