hi there i need to select all images with extension .png|.jpg|.gif(! preg_match( "/^<img src/i", $show ) )
How do i alter the above RE to exclude images?
hi there i need to select all images with extension .png|.jpg|.gif(! preg_match( "/^<img src/i", $show ) )
How do i alter the above RE to exclude images?
preg_match( "/^<img src=(.*)(.png|.jpg|.gif)/i", $show )
[Jasme Library (Javascript Motion Effects)] My Site
/\/\@§†ê® §©®¡þ† /\/\@|{ê®
There are 10 kinds of people in the world, those that understand binary and those that don't.
thanks but shouldnt i break the dots for the extensions?
if you mean escape, then yes.here it is escapedCode:preg_match( "/^<img src=(.*)(\.png|\.jpg|\.gif)/i", $show )
[Jasme Library (Javascript Motion Effects)] My Site
/\/\@§†ê® §©®¡þ† /\/\@|{ê®
There are 10 kinds of people in the world, those that understand binary and those that don't.
would this work???Code:preg_match( "/\.(png|jpg|gif)/i", $show )
1. i just need to detect the extension without the src part
2. and would it be faster to have the dot outside the extention part??
thanks again
Bookmarks