Created
May 7, 2025 10:45
-
-
Save trycf/c782558003e98ed8ae319d21ee9c0e24 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> | |
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