httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@worldgate.com>
Subject Re: regex confusion..
Date Fri, 16 Jan 1998 18:09:28 GMT
On Fri, 16 Jan 1998 rasmus@bellglobal.com wrote:

> > On Fri, 16 Jan 1998, Marc Slemko wrote:
> > 
> > > Ok.  That doesn't make sense since [z] works fine, but...
> > > 
> > > <Files ~ .*[.].*> 
> > > 
> > > works ok for only matching files with a . in them, but:
> > > 
> > > <Files ~ .*[^.].*> 
> > > 
> > > won't match the reverse.
> > 
> > Duh, of course not.  I need to wake up first.
> > 
> > Still looking for my magic regex... sigh.
> > 
> 
> Couldn't you use:
> 
>   <Files ~ ^[^.z]*$>
> 
> to match the reverse?  That would seem logical to me.

<Files ~ ^[^.]*$>

Yes, I just figured that out.  (the z doesn't really matter and was just a
temporary hack to work around odd looking things...)

There are some confusing things that mislead me while I was experimenting
that don't seem quite right, but...

Thanks.


Mime
View raw message