Community
    • Login

    How can I find $ with regular expression?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 2.4k 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.
    • Pierluigi VitielloP
      Pierluigi Vitiello
      last edited by

      I have files with $ but Notepad++ is unable to find $.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Pierluigi Vitiello
        last edited by

        @Pierluigi-Vitiello ,

        Regular expressions have a concept called “escaping”, where you put a \ before the special character, and it turns it into a literal character. So if you want to search for a literal dollar sign $ rather than the end-of-line that the symbol means in a regular expression, search for \$ instead of $.

        see the docs at https://npp-user-manual.org/docs/searching/#single-character-matches for more on the escaping sequence.

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