Subsribe to our RSS

latest reactions

Tjarko
Strange thing however is that the same s …
jax
another option.. replace the path separa …
jax
Load the file into eclipse and turn on ' …
jax
What does it say in the invalid *.cfmail …

mxna feeds

Adobe ColdFusion team - New TopicsColdFusion 9 Feature Request: Ext JS OnlyColdFusion 9 Feature Request: cfquery resultTypePatch for CFImage and Image functions in ColdFusion 8.0.1Proposals for ColdFusion 9 - From the Enemy's CampMXNA is now Adobe Feeds...MXNA is now Adobe Feeds...Free ColdFusion CMSUsing Constants in ColdFusion ComponentsThe Differences Between This and VariablesThe Differences Between This and VariablesGLACIER - Creating a new ColdFusion FrameworkFlex is MORE than just a pretty front-endA Review of Pair Progamming with Ben - and the RecordingPair Programming Session Recording

All files are strictly confidential: all information is classified.
© Copyright 2002 - 2008 mximize.com.
All right reserved.

MXNA webfeed

Visit Carlos GallupaPowered by ColdFusion MX 7.01

Strip unwanted characters from a string

Strip all except numbers and letters

<cfset newstr = rereplace(str, "[^A-Za-z0-9]+", "", "all")>

Strip all except numbers

<cfset newstr = rereplace(str, "[^0-9]+", "", "all")>


Strip all except CAPITAL letters

<cfset newstr = rereplace(str, "[^A-Z]+", "", "all")>

You get the point, this post is just for my own records. I keep forgetting how to do this and now I can look it up on my own blog.. thank god for that!!

2575 viewed | 2 opinion(s)  | del.icio.us | Digg it | Tjarko @ 15/01/07 21:39 cet


Reactions:

nwel wrote.... (mail)

this code saved my ass..
thanks a lot.!
iloveyou!

26 February 2007 6:16 cet  

Ash wrote....

Thanks!Saved my ass, too!

14 March 2008 4:19 cet  

Leave your comment

Your name


Your url/website/link/email....


Some room for your reaction is placed here..



A dozen apples are how many?? (12 would be a good answer for this)




URL en mail addresses are translated for you... life sometimes is that simple!!