Hello List,

I am hoping I can get some help here. I admit, I am very weak on pattern
matches.

I have a string that I want to substitute words for each <select> tag. I am
pretty sure I want to split the string at the <select> tags, then join
pieces with each answer in its proper place.

However, I just can't figure out how to find the beginning and the end of
the <select> tag. I have been trying to pattern match for the right combo
for an hour and I am just not getting it.

Thanks for any help.

Sample string:
If you compare plant and animal cells, you will discover differences. Plant
cells are stiff and rigid. They have a(n) <select name="a1"><option
value="cell membrane">cell membrane</option><option
value="cytoplasm">cytoplasm</option><option value="cell wall">cell
wall</option><option value="cell nuclei">cell nuclei</option><option
value="BLANK" selected>Select your answer</option></select> that protects
the plant cell. Animal cells have only a thin outer covering called a(n)
<select name="a2"><option value="power plant">power plant</option><option
value="cell wall">cell wall</option><option value="cell membrane">cell
membrane</option><option value="chloroplasts">chloroplasts</option><option
value="BLANK" selected>Select your answer</option></select> to protect them.
Plant cells only have one or two holding bins called <select
name="a3"><option value="cell wall">cell wall</option><option
value="chloroplasts">chloroplasts</option><option
value="vacuoles">vacuoles</option><option
value="cytoplasm">cytoplasm</option><option value="BLANK" selected>Select
your answer</option></select>. Animal cells have many vacuoles. Plant cells
have food factories called <select name="a4"><option
value="vacuoles">vacuoles</option><option
value="cytoplasm">cytoplasm</option><option value="cell nuclei">cell
nuclei</option><option value="chloroplasts">chloroplasts</option><option
value="BLANK" selected>Select your answer</option></select> which animal
cells don't have. Plant and animal cells also have other parts. Both have
<select name="a5"><option value="cell wall">cell wall</option><option
value="vacuoles">vacuoles</option><option value="cell nuclei">cell
nuclei</option><option value="cell membrane">cell membrane</option><option
value="BLANK" selected>Select your answer</option></select> which are found
in the center of the cells. They have a jellylike substance that fills the
cells called <select name="a6"><option
value="chloroplasts">chloroplasts</option><option
value="cytoplasm">cytoplasm</option><option value="cell membrane">cell
membrane</option><option value="vacuoles">vacuoles</option><option
value="BLANK" selected>Select your answer</option></select>. Both types of
cells also have a part that uses fuel from food for energy. It's like the
cell's <select name="a7"><option value="cell membrane">cell
membrane</option><option value="power plant">power plant</option><option
value="vacuoles">vacuoles</option><option
value="chloroplasts">chloroplasts</option><option value="BLANK"
selected>Select your answer</option></select>. 

And I want it to look like:
If you compare plant and animal cells, you will discover differences. Plant
cells are stiff and rigid. They have a(n) !x! that protects the plant cell.
Animal cells have only a thin outer covering called a(n) !x! to protect
them. Plant cells only have one or two holding bins called !x!. Animal cells
have many vacuoles. Plant cells have food factories called !x! which animal
cells don't have. Plant and animal cells also have other parts. Both have
!x! which are found in the center of the cells. They have a jellylike
substance that fills the cells called !x!. Both types of cells also have a
part that uses fuel from food for energy. It's like the cell's !x!.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to