Community
    • Login

    Marking Sing Letters In a Document To Clear

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 2 Posters 75 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.
    • Drake_M__D
      Drake_M__
      last edited by

      In one column in a text file, there are different indicators for my works data. I need to clear all indicators that are “R”.

      However, when marking only R within the text file it obviously marks all R’s throughout the file.

      Any insight on how to search for singular R’s instead of every R in the file?

      I understand this may not be the best description - below is attached what I am referring to.

      56ff2755-ea73-4aad-9f09-2145ae35a639-image.png

      Terry RT 1 Reply Last reply Reply Quote 0
      • Terry RT
        Terry R @Drake_M__
        last edited by Terry R

        @Drake-McCleary said in Marking Sing Letters In a Document To Clear:

        Any insight on how to search for singular R’s instead of every R in the file?

        Well the description is a bit light on details. Such as how do the other R characters appear? Are they only within text or at least next to other alpha characters. Are they in the middle of lines, not at the end like your example shows for the one you do wish to remove?

        If the R you wish to remove was always at the end of a line, then R$ would work, the $ denotes end of line. Possibly \sR(\s|$) might work if you need to test for a leading space, then the R and a trailing space or end of line?

        Terry

        Drake_M__D 1 Reply Last reply Reply Quote 0
        • Drake_M__D
          Drake_M__ @Terry R
          last edited by Drake_M__

          @Terry-R

          The additional R’s that are being marked, but I do not wish to remove, are in the middle of lines. See Below.

          I suppose what I’m truly getting at is I need to remove all lines with a “singular” or “stand alone” R instead of all R’s throughout the entire file.

          8342dc62-8757-46d3-ac37-c359acc62ad5-image.png

          Terry RT 1 Reply Last reply Reply Quote 0
          • Terry RT
            Terry R @Drake_M__
            last edited by

            @Drake-McCleary

            So try my last option, I think that will be close enough. Maybe use the find function to seek them and check if any that you don’t want selected are still being selected. Then let us see what it is, so that we may better help you.

            Terry

            Drake_M__D 1 Reply Last reply Reply Quote 0
            • Drake_M__D
              Drake_M__ @Terry R
              last edited by

              @Terry-R

              Your second option \sR(\s|$) worked like a charm.

              Thanks so much for the insight - huge help!

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