K
KL
Hello again,
I am still working on this homework assignment and have hit a wall.
I have a list that I want to fill with all occurences of img tags from a
big string of html code. So I have a string called str which holds the
html code and I want to find the string str1 which would be <img and
then write to the list an item that contains all the chars from <img
through the > that closes the img tag.
I was thinking that I would use str.find(str1) in this case, but I am
not completely sure of the syntax, and how to apply it to this
situation. I don't have any code to post, because I really am stuck at
the beginning of this part.
Just a reminder, this is a homework assignment, so I would prefer
answers that help point me in the right direction rather than just the
code to use.
Thanks again
I am still working on this homework assignment and have hit a wall.
I have a list that I want to fill with all occurences of img tags from a
big string of html code. So I have a string called str which holds the
html code and I want to find the string str1 which would be <img and
then write to the list an item that contains all the chars from <img
through the > that closes the img tag.
I was thinking that I would use str.find(str1) in this case, but I am
not completely sure of the syntax, and how to apply it to this
situation. I don't have any code to post, because I really am stuck at
the beginning of this part.
Just a reminder, this is a homework assignment, so I would prefer
answers that help point me in the right direction rather than just the
code to use.
Thanks again