(Darn reply-to field...) *grumble*

---------- Forwarded message ----------
From: Jonathan Lang <[EMAIL PROTECTED]>
Date: Mar 12, 2006 9:21 PM
Subject: Re: [Mason] Apache2, Modperl2 and Mason
To: Dave Rolsky <[EMAIL PROTECTED]>


Dave Rolsky wrote:
> This regex is only anchored to the end of the string. To match a file
> _starting_ with something you need '^something'

I have seen cases of applications that claim to implement regex's
properly, but which nonetheless implicitly anchor the pattern to the
start of the string even without a leading ^.  A cursory search
through Apache documentation hasn't turned up anything that
conclusively settles the issue in my mind, so I'd like to propose a
fairly simple test: try the pattern without the leading backslash.

If the problem clears up, then Apache 2 is implicitly anchoring the
pattern to the start of the string.

Applications that make the above faux pas also tend to anchor the end
of the pattern to the end of the string; once you have things working,
try ditching the trailing $ and see if the pattern matches for a file
that includes but does not end with one of the stated extensions.

I'd be very interested in hearing the results of these two experiments.

--
Jonathan "Dataweaver" Lang


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to