Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How can I find $ with regular expression?

    Help wanted · · · – – – · · ·
    2
    2
    443
    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 Vitiello
      Pierluigi Vitiello last edited by

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

      PeterJones 1 Reply Last reply Reply Quote 0
      • PeterJones
        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
        Copyright © 2014 NodeBB Forums | Contributors