Hi Guys, much as I know of VBScript, I am totally lost when it comes to regular expressions. I am hoping someone can provide me a simple example for the task I need to accomplish.
I want to open a text file. Enumerate each of the lines in the file to search for 3 lines of text that will each begin with specific text. I need to save those three lines if they are found into variables for later use and need to replace the text with new text.
The 3 lines of text I am looking for will each start with:
user_pref("network.proxy.
And I will be setting the following as the end state:
user_pref("network.proxy.http", "localhost";
user_pref("network.proxy.http_port", 8080);
user_pref("network.proxy.type", 1);
I would be grateful for any examples that can do all of the above. Thank you.
I want to open a text file. Enumerate each of the lines in the file to search for 3 lines of text that will each begin with specific text. I need to save those three lines if they are found into variables for later use and need to replace the text with new text.
The 3 lines of text I am looking for will each start with:
user_pref("network.proxy.
And I will be setting the following as the end state:
user_pref("network.proxy.http", "localhost";
user_pref("network.proxy.http_port", 8080);
user_pref("network.proxy.type", 1);
I would be grateful for any examples that can do all of the above. Thank you.