I’m trying to replace a string of 9 numbers in an HTML file with HTML-formatted hyperlinks in another text file - so, iterate through the string matches in the first HTML file and replace them with entire single lines from the text file.
The HTML file has Salesforce ticket numbers, and the text file has HTML-formatted hyperlinks that I generated through a process… so I’m trying to automate inserting the hyperlinks into the HTML file.
You know you didn’t even ask a question, don’t you?
Regardless of that - what have you tried so far? Please share your code and explain what’s not working as expected or what particular issue you have.
What you ask for is a very common task. There are literally thousands of examples out there for tasks like this. Did you try to search for a solution first? Try StackOverflow or Reddit or PowerShellGallery or - of course - here in this forum.
I think I’m close, but I don’t have enough experience with PowerShell to understand how to prevent it from infinitely looping, and I don’t understand why it’s inserting the file path instead of the text inside the file.