• Login
Community
  • Login

How to Get Filenames within Regex??

Scheduled Pinned Locked Moved General Discussion
3 Posts 3 Posters 513 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.
  • J
    Jerry Goedert
    last edited by Dec 13, 2022, 7:00 PM

    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

    A T 2 Replies Last reply Dec 13, 2022, 7:06 PM Reply Quote 0
    • A
      Alan Kilborn @Jerry Goedert
      last edited by Dec 13, 2022, 7:06 PM

      @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
      • T
        Terry R @Jerry Goedert
        last edited by Dec 13, 2022, 7:49 PM

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