RegEx URL
Posted: Sun Feb 24, 2008 11:22 am
Hello,
I need help with a little problem.
I'm wanting to only display a certain piece of information if the url matches.
For example if the url is http://www.mysite.com/news/news-112.html it will echo Correct
However if the url is http://www.mysite.com/news/cat-112.html it will echo incorrect.
The bit it picks up on will be the news- or cat-.
I've been told to use RegEx and URL but i can't find much information on how to create this.
Any examples or help would be really appreciated.
Thank You
Martin
I need help with a little problem.
I'm wanting to only display a certain piece of information if the url matches.
For example if the url is http://www.mysite.com/news/news-112.html it will echo Correct
However if the url is http://www.mysite.com/news/cat-112.html it will echo incorrect.
The bit it picks up on will be the news- or cat-.
I've been told to use RegEx and URL but i can't find much information on how to create this.
Any examples or help would be really appreciated.
Thank You
Martin