Re: URL Parsing...

From: Date: Sun, 25 Nov 2007 23:46:07 +0000
Subject: Re: URL Parsing...
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-265011@lists.php.net to get a copy of this message
Richard Heyes wrote:
well if you take a string (filename) and wish to change the end of it somone then I don't think str_replace() is the correct function. what's to say a script doesn't exist called 'my.cfm.php'?
How does this: /\.cfm$/ take into account that?
$ in regex's means 'end of string' - so it will only match .cfm at the very end of the string. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#265011) next »