httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike <dykci...@gmail.com>
Subject Re: APXS troubles
Date Fri, 20 Jul 2007 12:23:01 GMT
On 7/20/07, Ralf Mattes <rm@seid-online.de> wrote:
> I'd go for:
>
>  if ( $f = ~m/\.c(c|pp){0,1}$/i )
>
> This variant avoids backtracking  and makes the regexp case insensitive.
> Yes, it does accept monsters like 'Foo.cPp'. but who cares :-)
which is equal to
if ( $f =~m/\.c(c|pp)?$/i )

Mime
View raw message