Created
April 19, 2018 11:39
-
-
Save trycf/361559cdf91b59b182cc340728137d9d to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains hidden or 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> | |
| kati = "ham18032716543194500-glx11223313"; | |
| visit_reference = kati; | |
| position = findNoCase( "-GLX", kati ); | |
| if( position > 0 ){ | |
| data = listToArray( kati, "-glx" ); | |
| visit_reference = left( kati, position-1 ); | |
| deviceid = right( kati, len(kati)-position ); | |
| } | |
| </cfscript> | |
| <cfdump var="#visit_reference#"> | |
| <cfdump var="#deviceid#"> | |
| <cfdump var="#data#"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment