Re: [PHP] PHP: problem with patterns

2002-08-09 Thread Analysis & Solutions
Hi Alia: On Fri, Aug 09, 2002 at 02:50:32PM +0300, Alia Mikati wrote: > > I have to parse an html file and replace > src attribute of an img. I'm using 'preg_match_all' First off, if you're doing a search and replace, use preg_replace(). > having problem with patterns. This is the part of cod

[PHP] PHP: problem with patterns

2002-08-09 Thread Alia Mikati
Hi again, I hope u can help me with this. I have to parse an html file and replace src attribute of an img. I'm using 'preg_match_all' but it seems i'm having problem with patterns. This is the part of code that should find the appropriate img src: $preg='//si'; if (preg_match_all($preg,$arrFi