Re: [PHP] finding a substring

2004-07-16 Thread John W. Holmes
C.F. Scheidecker Antunes wrote: Hello all, I need to read lines within a text file that might have a " value='somevalue' " string the position of "value=" varies from line to line but there's only one "value=" in each line. So what I need to do is to parse the file and find the "value=" and put

Re: [PHP] finding a substring

2004-07-16 Thread Justin Patrin
preg_match_all('/value="(.*?)"/', file_get_contents('textFile.txt'), $matches); print_r($matches[1]); On Fri, 16 Jul 2004 18:08:12 -0600, C.F. Scheidecker Antunes <[EMAIL PROTECTED]> wrote: > Hello all, > > I need to read lines within a text file that might have a " > value='somevalue' " string