RemoveChars() - remove characters from a string
RemoveChars.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>RemoveChars function example: how to remove characters from a string</title>
</head>
<body>
<h2 style="color:HotPink">RemoveChars Function Example</h2>
<cfset TestString="Test string for RemoveChars function">
<cfoutput>
<b>
TestString: #TestString#
<br />
TestString[after remove substring start 6, count 6]: #RemoveChars(TestString,6,6)#
</b>
</cfoutput>
</body>
</html>
- LCase() - convert a string to lowercase
- Left() - get the leftmost count characters in a string
- Len() - get the length of a string
- Mid() - extracts a substring from a string
- RepeatString()
- Replace() - replace a substring in a string (case sensitive)
- ReplaceNoCase() - replace a substring in a string (case insensitive)
- Reverse() - reverse chracters in a string or digits in a number
- Right() - get the rightmost count characters in a string
- RTrim() - remove spaces from the end of a string