VBScript code to delete any data between two characters
Posted on 2009-05-14
I'm completely stumped on how to do this.
I have a file full of html code. I need to search through it and remove some code. The problem I have is that there is variable between [ and ], and I am not sure how to go about this.
I'm use to using replace and variables etc at a basic level, but this is well beyond me!
Stuff I need to keep<br /><font color="#ff0000">[variable data]</font><br /><font color="#000000">More stuff here I need to keep
I need a script/function to search and delete, leaving me with:
Stuff I need to keep<br /><br /><font color="#000000">More stuff here I need to keep
The square brackets don't appear anywhere else in the file, so they can be used as an anchor point for the deletion.