Searching a string for content, while populating a list.
Posted: Tue Feb 14, 2006 12:57 am
I am wondering what the easiest, or most efficient way is to search a string for all occurances of X and populating a list with each occurance. I've come up with a few solutions to this, but I am not sure that they are as fast or easy as they could be. I'd like to do a (find) with some regex on a string and throw each found occurance into a list.
Any ideas?
NOTE: In addition, I could use some mad regex fu. I need to scoure html source for all links and throw them into a list. Has anyone solved this problem already?
Any ideas?
NOTE: In addition, I could use some mad regex fu. I need to scoure html source for all links and throw them into a list. Has anyone solved this problem already?