Community
    • Login

    Beginning letter replacing

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    11 Posts 3 Posters 692 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.
    • Abed99A
      Abed99
      last edited by

      find : (?<=[\s(\r\n)])[lL]
      replace with what you want
      search mode : regular expression
      this will find any l capital or small in the beginning of any word

      find : (?<=[\s(\r\n)])(l-)|(L-)
      replace with what you want
      search mode : regular expression
      this will find any l capital or small that follow by -

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Abed99
        last edited by

        @Abed99

        Why not just find on \bL ?

        I hesitated to reply earlier to the OP because from the problem description I wasn’t quite sure what exactly was being asked for.

        Abed99A 2 Replies Last reply Reply Quote 0
        • kracovwolfK
          kracovwolf
          last edited by

          Abed- I tried your solution. It does change L- to I- but it also changes CARL- to CARI-

          Abed99A 1 Reply Last reply Reply Quote 0
          • Abed99A
            Abed99 @kracovwolf
            last edited by

            @kracovwolf can you describe your problem with more details?
            so you want to change L- to I- in beginning only ? if so use the first regex it works only if the L in the beginning

            1 Reply Last reply Reply Quote 0
            • Abed99A
              Abed99 @Alan Kilborn
              last edited by

              @Alan-Kilborn i notice that \bl match also if before the word was : or ;
              2.PNG

              Alan KilbornA 1 Reply Last reply Reply Quote 0
              • Abed99A
                Abed99 @Alan Kilborn
                last edited by

                @Alan-Kilborn 4.PNG

                1 Reply Last reply Reply Quote 0
                • Alan KilbornA
                  Alan Kilborn @Abed99
                  last edited by

                  @Abed99 said in Beginning letter replacing:

                  i notice that \bl match also if before the word was : or ;

                  Yea, well, same old problem here, happens time and time again…
                  People don’t know enough (to ask their question correctly) about the information required to derive the proper answer.

                  1 Reply Last reply Reply Quote 0
                  • kracovwolfK
                    kracovwolf
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • kracovwolfK
                      kracovwolf
                      last edited by

                      Yes I mean the first letter of the whole line. Your first expression doesn’t seem to work

                      \bl is the one that works, thanks

                      1 Reply Last reply Reply Quote 0
                      • kracovwolfK
                        kracovwolf
                        last edited by

                        I tried tweaking this since I found ones that begin with “L…”, so I tried \bL… but I didn’t realize that the periods act as wildcards so they changed all characters to periods. It changed “Well I can” to “Wel… I can” so obviously my tweak isn’t any good. If anyone has a solution let me know.

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