Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trycf/fdd53e12bc7097b214301c4befa186fc to your computer and use it in GitHub Desktop.
Save trycf/fdd53e12bc7097b214301c4befa186fc to your computer and use it in GitHub Desktop.
TryCF Gist
<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