I've added a little bit of code to my vbulletin forum to show error if the signature contains .gif, however it only works if the signature only contains .gif, if it contains anything else it fails.
So i believe i need to add a regular expression to fix this so that it will pick up any text before the .gif
if ($signature == ".gif")
how can i implement a regular expression into this so that it will pick up all text before .gif, a typical link would be something like
Question
game_over
I've added a little bit of code to my vbulletin forum to show error if the signature contains .gif, however it only works if the signature only contains .gif, if it contains anything else it fails.
So i believe i need to add a regular expression to fix this so that it will pick up any text before the .gif
if ($signature == ".gif")
how can i implement a regular expression into this so that it will pick up all text before .gif, a typical link would be something like
http://www.somewebsite.com/images/animated.gif
so i need a reg expression for the part in bold
Link to comment
Share on other sites
7 answers to this question
Recommended Posts