Re: [PHP] Writing "xxx" OR "yyy" with a regular expressions`?

2001-12-12 Thread Andrey Hristov
Try this : preg_match('!(HREF|SRC)=([\"\']?)(.*?)\2!i',$Content,$reg_array); HTH Regards, -- Andrey Hristov Web Developer Icygen Corporation BUILDING SOLUTIONS http://www.icygen.com On Wednesday 12 December 2001 02:06 pm, you wrote: > Hello there, > > I need to write all of the href="" conten

[PHP] Writing "xxx" OR "yyy" with a regular expressions`?

2001-12-12 Thread Lauri Vain
Hello there, I need to write all of the href="" contents into an array. Presently I use the following code, which works like charm: <.CODE>preg_match('!HREF=[\"\' ]{0,}([^\"\'>]*)[\"\'>]!i', $Content, $reg_array)<./CODE> That, however, doesn't support Frames so I would need to make the script ma