Community
    • Login

    String not found ?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 836 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.
    • Gérard JoyezG
      Gérard Joyez
      last edited by

      I was looking for the string
      S*w^{=JXa84riP0riS
      and it was not found ! Even if I take it from where it is !
      Strange isn’t it ?

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

        Well, I just tested in a new N++ file. I added some junk before and after it. Then using Search mode “normal” and “extended” I found the entries I was looking for.

        If however I use “regular expression” then yes you won’t find it. That’s because some of your string includes “meta-characters”. These are characters that have special meaning. To use them literally you’d need to have the following to search for them as characters.
        Find what: S\*w\^{=JXa84riP0riS

        Note that I have used the “” character before some, this is called the “escape” character and allows the meta character to retain it’s literal purpose, not the special meaning. That red text sequence that will find the same string as it dd in it’s original form with “normal” or “extended” mode.

        Hope that helps you?

        Terry

        Scott SumnerS 1 Reply Last reply Reply Quote 2
        • Scott SumnerS
          Scott Sumner @Terry R
          last edited by

          @Terry-R said:

          Note that I have used the “” character before some,

          I think this is supposed to read:

          Note that I have used the “\” character before some,

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