Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to Get Filenames within Regex??

    General Discussion
    3
    3
    52
    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 Goedert
      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 Kilborn Terry R 2 Replies Last reply Reply Quote 0
      • Alan Kilborn
        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 R
          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
          Copyright © 2014 NodeBB Forums | Contributors