How to use regular expression to count num of characters on a line

I am not sure how to go about this so I am coming to experts.

I have a value, variable with a vaule of 10.50.01.01

 

I need to either use a regular expression to count all of the characters for that value and return it. I am not sure if a regular expression is the best way to do this. Please help, I am stuck. thanks ina dvance.

10.50.01.01 = I basicall want the return to be 11.

Hi Jeff

Some script would probably be simpler that regular expressions :

'VBScript

MyLengthFBVariable = Len(MyVersionString)