Hi!

On 3 Jul 2001, at 15:21, Viljo Marrandi wrote:
> Actually i thought about r->uri. It returns everything after servername 
> and if i split it using '/' as separator i think i'm almost there ;o). 
I have a nearly finished module which applies some regular 
expression (specified in some config file) to the URI and puts the 
stuff it found into $r->param (that means you have to use CGI or 
Apache::Request to use it).

e.g: http://www.somehost.org/stuff/order_byname/id0099.html
Regexes:
order=>'order_(\w+)'
id=>'id(\n+)\.html'

After running the URL through my module you could get at the id 
with $r->param('id')

If you're interested, I could send it to you ...

BTW, if anybody else is interested in this module, I could put it on 
CPAN (after deciding on a Namespace etc)


--
D_omm
O_xyderkes         http://domm.zsi.at
M_echanen
M_asteuei

Reply via email to