I have a string in a bunch of files I’d like to replace with the file’s name. I’m not super experienced with RegEx, and not even sure if that’s the way to go or if it’s possible.
For example, if the string in the file is called “mystring1” and the filename is called “allstrings.txt” I’d like to replace “mystring1” with “allstrings”. File extension not needed.
Any help would be appreciated!