Hi,
I'm trying to do the following:
1. open a file to search for some specific text.
2. take a 'specific range of text' from the line where my search was found.
3. pass the text in the 'specific range' to a variable so i can print it out.
example:
I have the following text in a file. Everything in the line below is in the file along with lots of other text.
<Directory Filename="the_specific_range_of_text_is_in_here" Version="1.9">
1. Now I want to be able to search for the first part which is always constant:
<Directory Filename=
2. Then I want to take everything after the search in #1 above, but only the stuff in between the quotations:
"the_specific_range_of_text_is_in_here"
3. But ignore the text from the rest of the line:
Version="1.9">
Whatever text was in between the quotations in #2 above, I want passed to a variable so I can use this for printing to some output.
I've seen many search and replace scripts, but I can't seem to find anything that does exactly what I want.
Please help.
20040729 Edit by ysth: change /br tags to br/