Posted on: 5/9/2012 10:10:52 AM | Views : 233

I want to match certain pattern Please help

website1/somestring/
website1/somestring/default.htm
website/somestring

but i need to exclude
website/xyz
xyz = particular string which i want to exclude
website1/somestring/anything
from above line after slash i want to allow only default.htm or space
anything other than this i want to exclude

i tried with below line
/website1/(.*)/[^*\S]*$


but not working for all combination
please help
...

Go to the complete details ...