Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/c782558003e98ed8ae319d21ee9c0e24 to your computer and use it in GitHub Desktop.
Save trycf/c782558003e98ed8ae319d21ee9c0e24 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
v = "00012.00006.00003.0011";
lv = "06.000.7728.0100.100";
//dump(toNumeric(v));
//dump(toNumeric(lv));
dump(REReplace( v, "[^\d]", "", "all" ));
dump(REReplace( lv, "[^\d]", "", "all" ));
_lv = REReplace( lv, "[^\d]", "", "all" )
_v = REReplace( v, "[^\d]", "", "all" )
dump(toNumeric(REReplace( v, "[^\d]", "", "all" )));
dump(toNumeric(REReplace( lv, "[^\d]", "", "all" )));
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment