How to Get Filenames within Regex??
-
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 -
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.
-
@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