Re: regex problem
| From: | Merlin | Date: | Fri, 15 Aug 2003 11:16:53 +0000 |
| Subject: | Re: regex problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159671@lists.php.net to get a copy of this message | ||
> ^\/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?
--
<IFRAME
SRC="http://saratoga.globosapiens/associates/report_member.php?u=3&color=EEE
EEE" scrolling=no frameborder=0 TITLE="My travel articles" width="330"
height="155" ALLOWTRANSPARENCY="true"><a href="http://www.globosapiens.net"
title="Worldwide Travel Community"a>Travel Community<a/> </IFRAME>
"Kae Verens" <kverens@contactjuggling.org> schrieb im Newsbeitrag
news:20030815110908.35628.qmail@pb1.pair.com...
> Merlin wrote:
> > Hi there,
> >
> > I have a regex problem.
> >
> > Basicly I do not want to match:
> >
> > /dir/test/contact.html
> >
> > But I do want to match:
> > /test/contact.html
> >
> > I tryed this one:
> > ^[!dir]/(.*)/contact(.*).html$
> >
> > but it does not work and I tryed thousands of other ways plus read
> > tutorials.
> >
> > Can anybody please help?
>
> ^\/test\/contact.html$
>
> Kae
>