RE: [PHP] Re: Re[PHP] gex to catch s

2008-05-08 Thread smulyono
ginal Message- From: Ryan S [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 07, 2008 10:52 AM To: vester_s Cc: php php Subject: Re: [PHP] Re: Re[PHP] gex to catch s Hey, $tag_regex=array( '/\(.*?)\<\/p\> /si' => "$1", '/\<(\s*)(*.?)class\=(*.?)\>(

Re: [PHP] Re: Re[PHP] gex to catch s

2008-05-07 Thread Ryan S
Hey, $tag_regex=array( '/\(.*?)\<\/p\> /si' => "$1", '/\<(\s*)(*.?)class\=(*.?)\>(.*?)\<\/(*.?)\>/si' => "$3" ); $paragraphs=preg_replace(array_keys($tag_regex),array_values($tag_regex),$page); I am not sure what tag is that you mean on , but in this RE .. it should capture any tags (t

[PHP] Re: Re[PHP] gex to catch s

2008-05-06 Thread vester_s
$tag_regex=array( '/\(.*?)\<\/p\> /si' => "$1", '/\<(\s*)(*.?)class\=(*.?)\>(.*?)\<\/(*.?)\>/si' => "$3" ); $paragraphs=preg_replace(array_keys($tag_regex),array_values($tag_regex),$page); I am not sure what tag is that you mean on , but in this RE .. it should capture any tags (the first e