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

**URL:** https://www.finalbuilder.com/forums/t/how-to-use-regular-expression-to-count-num-of-characters-on-a-line/1136
**Category:** Discussion
**Created:** [March 6, 2009, 10:43am UTC](https://www.finalbuilder.com/forums/t/how-to-use-regular-expression-to-count-num-of-characters-on-a-line/1136 "2009-03-06T10:43:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jmagda](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/9e8a1a/32.png) [@jmagda](https://www.finalbuilder.com/forums/u/jmagda)
#### Post date: [March 6, 2009, 10:43am UTC](https://www.finalbuilder.com/forums/t/how-to-use-regular-expression-to-count-num-of-characters-on-a-line/1136/1 "2009-03-06T10:43:46Z")

</div>

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

&nbsp;

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.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [March 8, 2009, 1:05am UTC](https://www.finalbuilder.com/forums/t/how-to-use-regular-expression-to-count-num-of-characters-on-a-line/1136/2 "2009-03-08T01:05:03Z")

</div>

Hi Jeff   
  
 Some script would probably be simpler that regular expressions :   
  
 'VBScript   
  
 MyLengthFBVariable = Len(MyVersionString)
