Don't ask to ask, just ask | |
PerlMonks |
Re: mod_rewrite + CGI.pm in "reverse"?by cleverett (Friar) |
on Mar 11, 2005 at 19:05 UTC ( [id://438753]=note: print w/replies, xml ) | Need Help?? |
I use mod_rewrite a a fair amount, and for something like
this, I'd do:
I could be wrong about this, but the reason in my mind for using this little bit of voodoo is that .* will match from the second character to the end of the uri, leaving $2 and $3 undefined. ([^/]+)/([^/]+) is analogous to using (\w+)\W+(\w+) to pick out 2 series of non-spaces bracketing a length of whitespace.
In Section
Seekers of Perl Wisdom
|
|