How do I convert the following string value to a numerical value that represents two digits between the dots?
version = 7.10.23.1
I would like for this to be converted to a numeric value:
version = 07102301
The zero before the 7, does not need to show. I just need to be able to perform <> conditional or comparison functions. I appreciate your help.
| makeresults
| eval version = "7.10.23.1"
| rex field=version mode=sed "s/\b(\d)\b/0\1/g s/\.//g"
| makeresults
| eval version = "7.10.23.1"
| rex field=version mode=sed "s/\b(\d)\b/0\1/g s/\.//g"
This worked beautiful!! lol. I tested various numbers, and all tested consistent. Thank you so much @to4kawa