Created
September 9, 2021 18:42
-
-
Save trycf/916579ab2dbe0d8eac229bfd45aa4c33 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset test = 'a~b~~c~d~~~e'> | |
<cfset test2 = reReplace(test, '~(?=~)','~X','all')> | |
<cfoutput> | |
test #test# | |
<br> test2 #test2# | |
<br>wanted: a~b~X~c~d~X~X~e | |
</cfoutput> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment