Re: Geting feet wet with REGEX and url rewriting (maybe a bit 0T)

From: Date: Thu, 04 May 2006 17:01:29 +0000
Subject: Re: Geting feet wet with REGEX and url rewriting (maybe a bit 0T)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-235537@lists.php.net to get a copy of this message
Works perfectly, thank you! Just got a bit confused after all the reading. Regards, Ryan > > You just need to add another pair of parenthesis > to get the second match. For your case, it'll be > something like (untested): > > RewriteRule ^blog-([0-9]+)-([^\.]+)\.html$ > index.php?act=blog&id=$1&string=$2 > > Rabin > > -- > http://rab.in > ------ - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) ----- Fight back spam! Download the Blue Frog. http://www.bluesecurity.com/register/s?user=bXVzaWNndTc%3D __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

« previous php.general (#235537) next »