[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: quick regex
>
> "^" at the beginning means... at the beginning of the string or something.
> Likewise, "$" at the end means at the end of the string or something.
ahh ok, makes sense
>
> /^inc\./ and /\.php$/ would match all three of those example filenames you
> gave, for example, but take the new <Files> section I put down there
anyway.
>
> > <Files ~ "^\inc.">
> > Order allow,deny
> > Deny from all
> > Satisfy All
> > </Files>
>
> <Files ~ "^inc\.">
> Order deny,allow
> Deny from all
> Satisfy All
> </Files>
>
> I think, anyway. I could be smoking some bad rocks or something, so be
weary.
>
i didnt think about "\." being the escaped form of the '.' character
time to learn regex me thinks
that last one works beautifully btw, i appreciate it
Casey
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.