How to get the rightmost count characters in a string in ColdFusion

Right() - get the rightmost count characters in a string

Right.cfm


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Right function example: how to get the rightmost count characters in a string</title>
</head>

<body>
<h2 style="color:HotPink">Right Function Example</h2>

<cfset TestString="This is a test string for Right function">
<cfoutput>
<b>
TestString: #TestString#
<br />
TestString[Right 8 characters]: #Right(TestString,8)#
</b>
</cfoutput>
</body>
</html>





More ColdFusion examples