• Login
Community
  • Login

How can I find $ with regular expression?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 2.5k 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.
  • P
    Pierluigi Vitiello
    last edited by Oct 11, 2021, 12:45 PM

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

    P 1 Reply Last reply Oct 11, 2021, 12:54 PM Reply Quote 0
    • P
      PeterJones @Pierluigi Vitiello
      last edited by Oct 11, 2021, 12:54 PM

      @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
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors