Notice: With the launch of Adobe Cookbooks, this site will no longer be accepting new entries or posting new content. Thanks to everyone who submitted content!

Strings

This category is everything string related.

Problems

How can I pad a variable with spaces or other characters?
If you need to pad a ColdFusion variable with spaces then you can use the build in rjustify() and lj...

How can I prevent empty query values from creating empty table cells?
If you place the contents of a ColdFusion query in an HTML table, any blank query value may show up ...

How can I use ColdFusion to work with JSON?
JSON stands for JavaScript Object Notation. You can think of it as a way to represent data (and type...

How can I validate a password to make sure it contains numbers and letters and is at least X characters long?
Regular expression combined with the <cfif> and reFind() function give you the flexibility to ...

How do I create RSS feeds?
The <cffeed> tag can be used to both read and create RSS feeds. To create an RSS feed, you nee...

How do I get the username or domain from an email address?
The obvious use of lists in ColdFusion is to work with a lists of data. However what's cool about li...

How do I parse RSS feeds?
RSS is a form of syndication in use by almost all blogs and many other types of web sites. It is a s...

How do I remove HTML from a string?
There are many applications that allow visitors to enter content that will then get displayed on scr...

How do you highlight searched words in results?
This is a simple matter of finding the text you are looking for, and replacing this text with a high...

What's the most effective way to clean text pasted from Microsoft Word?
A common problem in forms arise when content is pasted from Microsoft Word. Characters sometimes bec...