Created
February 23, 2024 20:28
-
-
Save trycf/fdd53e12bc7097b214301c4befa186fc 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
<cfscript> | |
a = "123 Main Street"; | |
writeOutput("#a#<br>"); | |
propertyStreetNumber = a.listFirst( ' ' ); | |
propertyStreetName = a.replace( propertyStreetNumber, '' ).trim(); | |
writeOutput("#a#<br>"); | |
writeOutput("#propertyStreetNumber#<br>"); | |
writeOutput("#propertyStreetName#<br>"); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment