hey guys/gals,
I am trying to do this but I am having a tough time getting it to work right.
ok, i have loaded an html document into a variable:
$html_doc = "html document here loaded from file";
now, I want to take out parts of that HTML document. lets say within that HTML document, there is the following string.
what I want to do is just take out the values (ie. "option1", "option2" etc) of each option and store them in an array and their corresponding names (ie. "Hello", "Today", "is", "a", "Sunday") and store them in another array.Code:<option value="option1">Hello</option> <option value="option2">Today</option> <option value="option3">is</option> <option value="option4">a</option> <option value="option5">Sunday</option>
I think this requires pattern matching which I have a hard time doing... if anyone can help me, ill be in your debt!![]()
thanks!





Bookmarks