removeEndSpaces(str)
Last updated March 6, 2010
Version: 2 | Requires: ColdFusion 5 | Library: StrLib
Description:
strips all graph characters (spaces, tabs, line breaks) off the end of a string.
Return Values:
Returns a string.
Example:
Parameters:
| Name | Description | Required |
|---|---|---|
| str | String to parse. | Yes |
Full UDF Source:
<cfscript>
/**
* strips all graph characters (spaces, tabs, line breaks) off the end of a string.
* Version 2 by Raymond Camden
*
* @param str String to parse. (Required)
* @return Returns a string.
* @author Nick Giovanni (ngiovanni@gmail.com)
* @version 2, March 6, 2010
*/
function removeEndSpaces(str) {
return reReplace(str,"\s*$","","all");
}
</cfscript>
Search CFLib.org
Latest Additions
Tayo Akinmade added
arrayTrim
11 day(s) ago
Will Belden added
longTime
17 day(s) ago
James Sleeman added
quickSort
27 day(s) ago
Ben Forta added
GetHostAddress
30 day(s) ago
Top Rated
EksporSQLData
Rated 5.0, 16 time(s)
backupDatabase
Rated 5.0, 13 time(s)
indentXml
Rated 5.0, 10 time(s)
generateSsccAsn
Rated 5.0, 4 time(s)