How to remove characters from a string in ColdFusion

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>





More ColdFusion examples