[PHP] Re: regex help and file question

2004-08-07 Thread Torsten Roehr
Php Gen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am just starting out with regex (and classes) so am not sure how to do this... I am seeing if a HTML file exists, if yes, I am using file_get_contents to get the entire HTML file into a string. In the HTML file I

Re: [PHP] Re: regex help and file question

2004-08-07 Thread PHP Gen
Hi, I can't answer your regexp question but some thoughts on file() etc.: - file() returns the contents line by line as an array, so this makes only sense if you need the contents in this form, e.g. for looping through each line and applying a function or whatever - fread() requires a