Community
    • Login

    Help with searching phrases in files

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 279 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.
    • Jimmy MurrayJ
      Jimmy Murray
      last edited by

      Hello! I ask for help with the search for a phrase that should include two words in text files.

      There are many text files with addresses, I need to find one line with the address in these files.
      Example:
      The string with the address is written like this:
      ADDRESS: (street name), (City), IL (zip code)
      how do i search for strings in text files that will include “ADDRESS:” and “, IL”

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Jimmy Murray
        last edited by Alan Kilborn

        @Jimmy-Murray said in Help with searching phrases in files:

        how do i search for strings in text files that will include “ADDRESS:” and “, IL”

        If the requirement is that it is on a single line like you’ve shown then:

        Find: (?-s)ADDRESS:.*?, IL
        Search mode: Regular expression

        LINK to learn more.

        Jimmy MurrayJ 1 Reply Last reply Reply Quote 2
        • Jimmy MurrayJ
          Jimmy Murray @Alan Kilborn
          last edited by

          @Alan-Kilborn Thank you very much!!!I will try

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