Created
April 19, 2018 11:36
-
-
Save trycf/6fa7587011fba31efcb1cfeb879ebd74 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
| <cfset kati = "ham18032716543194500-glx11223313"> | |
| <cfset visit_reference = kati> | |
| <cfset position = findNoCase( "-GLX", kati )> | |
| <cfif position GT 0> | |
| <cfset data = listToArray( kati, "-glx" ) | |
| <cfset visit_reference = left( kati, position-1 )> | |
| <cfset deviceid = right( kati, len(kati) - position )> | |
| </cfif> | |
| <cfdump var="#visit_reference#"> | |
| <cfdump var="#deviceid#"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment