Sublime directory Surf the web anonymous Pagerank Monitor


Regular expression help with image extensions

chaz
Sun 1 June 2008, 06:04 am GMT +0200
Regular expression help with image extensions
Quote:
(! preg_match( "/^<img src/i", $show ) )
hi there i need to select all images with extension .png|.jpg|.gif

How do i alter the above RE to exclude images? thanks

Nikolas
Mon 2 June 2008, 02:57 pm GMT +0200
I don't understand. You want to exclude images, or you want to get only png, gif and jpg?

chaz
Tue 3 June 2008, 10:18 am GMT +0200
I don't understand. You want to exclude images, or you want to get only png, gif and jpg?

either way ;)

i just need the syntax

would this

( /\.(gif|jpg|png)/i )

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional