Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save trycf/6a0c771d20b1a458e10a57dc84ad4b28 to your computer and use it in GitHub Desktop.

Select an option

Save trycf/6a0c771d20b1a458e10a57dc84ad4b28 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
str = "2.2.2.2 Internal Investment Funds DVP 259 25,90";
arrstr = listToArray(str, " ");
dump(arrstr);
if(reFindNoCase("^\d.\d",str)){
revStr = listToArray(reverse(str), " ");
}
result = reFindNoCase("^\d.\d",str,1,true);
// dump(result);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment