Re: Re: regex problem

From: Date: Fri, 15 Aug 2003 13:33:58 +0000
Subject: Re: Re: regex problem
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-159687@lists.php.net to get a copy of this message
So ^[^/]+/[^/]* or ^!(partner/) Merlin wrote:
ufff.. sorry guys, but I have to explain that better. I appreciate your help, maybe I did not give enough info. I am trying to redirect with apache modrewrite. To do this you have to use regex (not if functions:-) My problem is, that there are member accounts which look like that: membername/contact.html and there are partner accounts which look like this: partner/name/contact.html The goal is to redirect only if it is a member account. If I put a (.*)/contact.html it also matches the partner/ I tryed putting a root / infront, but there is not / root for the url from apaches point of view. So I would need a regex which will match the member account, but if the first word is "partner" it should not terminate. This seems to be a tough one! Thanx for any help, Merlin "Kae Verens" <kverens@contactjuggling.org> schrieb im Newsbeitrag news:20030815122950.99785.qmail@pb1.pair.com...
Merlin wrote:
^\/test\/contact.html$
does not work. I am sorry, I just found that it has to be: test/contact.html and not dir/test/contact.html there is no leading slash. Do you have any other suggestion?
*sigh* ^test\/contact.html$ Kae


« previous php.general (#159687) next »