Community
    • Login

    How to ignore certain characters in searches

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 2.3k Views 2 Watching
    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.
    • Amanda HamiltonA Offline
      Amanda Hamilton
      last edited by

      Hello! I have a large collection of audio transcriptions done via the CLAN program. I have searched these transcriptions via Notepad++ for years. I’m suddenly having a problem searching across line breaks, though. It seems that CLAN adds a carriage return and a line feed whenever it wraps a line of text, and then a tab at the beginning of the next line (see screenshot below). This means that when I search for a string of words, Notepad++will find them if they’re not broken across a line, but it won’t find them if they are. I definitely did not have this problem in the past; I don’t know if something about CLAN has changed or what. Is there a way to search for a string of words (typed out normally, with one space between each word) and have it still find strings that are broken across lines like this, with a carriage return, line feed, and tab potentially replacing any one of the inter-word spaces?

      Thank you!!

      Screenshot 2024-03-29 011232.png

      Notepad++ v8.6.4 (64-bit)
      Build time : Feb 20 2024 - 00:12:59
      Path : C:\Program Files\Notepad++\notepad++.exe
      Command Line :
      Admin mode : OFF
      Local Conf mode : OFF
      Cloud Config : OFF
      OS Name : Windows 11 Home (64-bit)
      OS Version : 23H2
      OS Build : 22631.3296
      Current ANSI codepage : 1252
      Plugins :
      mimeTools (3.1)
      NppConverter (4.6)
      NppExport (0.4)

      PeterJonesP 1 Reply Last reply Reply Quote 1
      • PeterJonesP Offline
        PeterJones @Amanda Hamilton
        last edited by

        @Amanda-Hamilton ,

        I definitely did not have this problem in the past; I don’t know if something about CLAN has changed or what.

        I presume CLAN changed (maybe it used to generate long lines, and you just saw Notepad++'s long-line wrapping, which doesn’t introduce CRLF)

        If you use Regular Expression (“regex”) search syntax, as defined in the Online User Manual, you could do this.

        Searching for best I could, it would fail, but searching in regex mode for best\s+I\s+could, it would find it (\s+ means “one or more whitespace characters”, where “whitespace characters” include space, tab, newline, and some other Unicode characters as well)

        -—

        Useful References

        • Please Read Before Posting
        • Template for Search/Replace Questions
        • Formatting Forum Posts
        • Notepad++ Online User Manual: Searching/Regex
        • FAQ: Where to find other regular expressions (regex) documentation
        Amanda HamiltonA 1 Reply Last reply Reply Quote 2
        • Amanda HamiltonA Offline
          Amanda Hamilton @PeterJones
          last edited by

          @PeterJones ,

          Thank you very much! That does indeed work. I have also heard back from the CLAN developer, who suggests I could use a CLAN program to generate long tiers–but it does make things very hard to read in CLAN. Your solution is probably better. Thank you!!

          1 Reply Last reply Reply Quote 1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors