Patti, >-----Original Message----- >From: Patti Ames [mailto:[EMAIL PROTECTED]] >There are two major things to consider here. >First, are you generating this list of links, or is someone else?
At the moment, I'm generating it, and will probably continue to do so... >If it is someone else, how do you know that there are no other attributes in the a tag, and that the href attribute is quoted? >So what I'd use is something like: > '<a [^>]*>[^<]*</a>' Looking good so far! <snip> >Second, is each line guaranteed to be on a seperate line of >the html? It >seems like you are checking whether or not the regex appears >anywhere in >the file, and if it does, then append the whole file to $body. It might >be worthwhile to strip out the <a> stuff, or at least verify that each >line contains a link. OK, this is bad commenting by me. (/me slaps own wrist!) It sould search anywhere in the text, and then the list it creates should present me with an email with one link per line, a bit like a table of contents, hence the use of ."\n" to put the carriage return in the plain text email that is sent. I'll try the new regex and see what happens. Cheers, Matt ____ � The WDVL Discussion List from WDVL.COM � ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
