Community
    • Login

    How to Get Filenames within Regex??

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 3 Posters 512 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.
    • Jerry GoedertJ
      Jerry Goedert
      last edited by

      Re: How to get the Filenames after running “Find in Files” ?

      Hi,
      I am fairly new to Regex.
      I would like to know if I could add the Filename within the file itself using regex with search and replace??
      Jerry

      Alan KilbornA Terry RT 2 Replies Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Jerry Goedert
        last edited by

        @Jerry-Goedert

        Sorry, there’s no direct connection between the filename and regex searching.

        But if the filename is already in the file’s data, you can possibly grab it that way with regex.

        Really you should show an example so people really know what you’re asking about.

        1 Reply Last reply Reply Quote 4
        • Terry RT
          Terry R @Jerry Goedert
          last edited by

          @Jerry-Goedert said in How to Get Filenames within Regex??:

          I would like to know if I could add the Filename within the file itself using regex with search and replace??

          As @Alan-Kilborn stated your question is a bit vague and if you gave more info, especially examples we might be able to help or direct you in some way to help you find the solution.

          However I do recall a couple of old posts that may relate in some manner to your question.
          See batch function - need to add filename at the end of each paragraph
          and
          How to get the Filenames after running “Find in Files” ?.
          They may give you some inspiration.

          Terry

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