[PHP] regex causing headache ;-(

2003-08-14 Thread Merlin
Hi there, I am having trouble with a reg ex. What it should do is, terminate if the url is /*/contact.html but it should not terminate if it is /partner/*/contact.html where * stands for any value I tryed: RewriteRule ^!partner/(.*)/contact(.*).html$ profiles?modrew_fa=6 but obviously the par

Re: [PHP] regex causing headache ;-(

2003-08-14 Thread Marek Kilimajer
try RewriteRule ^!partner/([^/]*)/contact([\.]*).html$ profiles?modrew_fa=6 Merlin wrote: Hi there, I am having trouble with a reg ex. What it should do is, terminate if the url is /*/contact.html but it should not terminate if it is /partner/*/contact.html where * stands for any value I tryed

Re: [PHP] regex causing headache ;-(

2003-08-14 Thread Merlin
nop.. that does not work either. It does not execute for a url like: /test/contact.html The regex should execute for /test/contact.html but not for /partner/test/contact.html where test should be open for any word Any other suggestions? I am sure this is possible. Merlin -- arek Kilimajer" <[