Re: regex causing headache ;-(

From: Date: Thu, 14 Aug 2003 15:21:36 +0000
Subject: Re: regex causing headache ;-(
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-159592@lists.php.net to get a copy of this message
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" <kilimajer@webglobe.sk> schrieb im Newsbeitrag news:3F3BA240.4030104@webglobe.sk... > 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: > > RewriteRule ^!partner/(.*)/contact(.*).html$ profiles?modrew_fa=6 > > > > but obviously the partner thing does not work. > > > > Can anybody help me on that? > > > > Thanx in advance, > > > > Merlin > > > > > > >

« previous php.general (#159592) next »