Jump to content

using regular expressions within if () conditional statement


Recommended Posts

basically what the title says, is it possible to use regular expressions within an if() conditional statement? ie, something likeif ($var == '*image*') {}the reason why is I made a search function for the website im making and im trying to exclude it from searching certain folders, this particular instance being all folders that have images in them (and hence would have 'image' in the name of the folder itself)is this possible or am I just dreaming up awesome features?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...