alk
> Subject: Re: How can I make this "Replace()" work?
>
>
> "all"),
> "'", "", "all")>
> source="#ExpandPath(cffile.serverFile)#">
>
> On Fri, Mar 13, 2009 at 7:26 PM, Rick Faircloth
> wrote:
osing
your edge a bit...so...you're welcome! ;o)
Rick
> -Original Message-
> From: Will Tomlinson [mailto:w...@wtomlinson.com]
> Sent: Saturday, March 14, 2009 2:36 AM
> To: cf-talk
> Subject: Re: How can I make this "Replace()" work?
>
>
> >
On Fri, Mar 13, 2009 at 7:26 PM, Rick Faircloth wrote:
>
> I have an uploaded file named: CIY '06 001.jpg (That's
> CIY'06001.jpg)
>
> I want to change the name of that file to: CIY06001.jpg
>
> By running a replace or regex.replace() or something to remove all
> non-alphanumeric characters
>I have an uploaded file named: CIY '06 001.jpg (That's
>CIY'06001.jpg)
>
>I want to change the name of that file to: CIY06001.jpg
Dunno if this is an option rick, but I usually use bobby h's trick of creating
my own filename for the images. Then you don't need to worry about
crappily-named
imized, I'm all ears.
I'm just glad to finally have this code working!
Thanks, again!
Rick
> -Original Message-
> From: Peter Boughton [mailto:bought...@gmail.com]
> Sent: Friday, March 13, 2009 10:22 PM
> To: cf-talk
> Subject: Re:
>"")>
ColdFusion does not have a built in "regex" object, as you are attempting to
use there.
To perform a regex replace, you need to use
rereplace("input","regex","replacement")
Also, your regex does not match your description:
> something to remove all non-alphanumeric characters,
> excep
> By running a replace or regex.replace() or
> something to remove all non-alphanumeric
> characters,
You want to use the REReplace() function instead of the usual Replace()
function, which does not support regular expressions. REReplace() does,
however.
--
Justin Scott | GravityFree
Member of
I have an uploaded file named: CIY '06 001.jpg (That's
CIY'06001.jpg)
I want to change the name of that file to: CIY06001.jpg
By running a replace or regex.replace() or something to remove all
non-alphanumeric characters,
except the . before the extension.
I've tried a lot of different w
8 matches
Mail list logo