ReplaceNoCase() - replace a substring in a string (case insensitive)
ReplaceNoCase.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ReplaceNoCase function example: how to replace a substring in a string (case insensitive)</title>
</head>
<body>
<h2 style="color:HotPink">ReplaceNoCase Function Example [case insensitive]</h2>
<cfset TestString="This is test string. this is test. Only Test">
<cfoutput>
<b>
TestString: #TestString#
<br />
TestString[after replace substring "test" with "simple" first ]: #ReplaceNoCase(TestString,"test","simple","one")#
<br />
TestString[after replace substring "test" with "simple" all ]: #ReplaceNoCase(TestString,"test","simple","all")#
</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
- RemoveChars() - remove characters from a string
- RepeatString()
- Replace() - replace a substring in a string (case sensitive)
- 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