Jump to content

using regular expressions within if () conditional statement


smartalco

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...