newbie101
10-06-2013, 11:23 PM
Hi Folks,
I have a long document that has multiple occurrences of a string beginning with the word [Start] and ending with [End], the contents of the string itself differ. I need to find all the strings that begin with the word [Start] and end with [End], and add This is the between the opening bracket and End. the end result will be [Start] yada yada etc. [This is the End].
The document contains many [] that are not part of a string that begins with [Start], I don't want to add the text to them.
I've been struggling with different ways and either This is the is added to all [], or it only adds it to the first occurrence.
I have a long document that has multiple occurrences of a string beginning with the word [Start] and ending with [End], the contents of the string itself differ. I need to find all the strings that begin with the word [Start] and end with [End], and add This is the between the opening bracket and End. the end result will be [Start] yada yada etc. [This is the End].
The document contains many [] that are not part of a string that begins with [Start], I don't want to add the text to them.
I've been struggling with different ways and either This is the is added to all [], or it only adds it to the first occurrence.