# &quot;50&quot; is being retrieved as &quot;so&quot;

**URL:** <https://forums.eggplantsoftware.com/t/quot-50-quot-is-being-retrieved-as-quot-so-quot/3658>\
**Category:** Eggplant Functional\
**Created:** [November 29, 2015, 2:06am UTC](https://forums.eggplantsoftware.com/t/quot-50-quot-is-being-retrieved-as-quot-so-quot/3658 "2015-11-29T02:06:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![px1](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/p/848f3c/32.png) [@px1](https://forums.eggplantsoftware.com/u/px1)\
**Post date:** [November 29, 2015, 2:06am UTC](https://forums.eggplantsoftware.com/t/quot-50-quot-is-being-retrieved-as-quot-so-quot/3658/1 "2015-11-29T02:06:20Z")

</div>

I’m trying to read the number but it always return “so” instead of “50”  
This is what I tried so far :

```auto
put ReadText(contrast:"On", ContrastTolerance:90) into result

```

I tried

```auto
ReadText(contrast:"On", ContrastTolerance:90, ValidPattern:"[0-9]") into result

```

but It even does not return anything.  
Bellow is the image.  
Thanks,

---

<div class="post-metadata">

**Author:** ![JonathanOSX](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/jonathanosx/32/4_2.png) [@JonathanOSX](https://forums.eggplantsoftware.com/u/JonathanOSX)\
**Post date:** [November 29, 2015, 10:15am UTC](https://forums.eggplantsoftware.com/t/quot-50-quot-is-being-retrieved-as-quot-so-quot/3658/2 "2015-11-29T10:15:03Z")

</div>

You’ll have better luck reading numbers if you specify

```auto
ValidCharacters: "0123456789"

```

That will specifically tell it you want it to try to read only those characters.

For ValidPattern you need to define an entire pattern of characters. Here you’ve only specified a single character. It is designed for things like User[0-9] to match User5 or User8 but not Users.

---

<div class="post-metadata">

**Author:** ![px1](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/p/848f3c/32.png) [@px1](https://forums.eggplantsoftware.com/u/px1)\
**Post date:** [November 29, 2015, 5:05pm UTC](https://forums.eggplantsoftware.com/t/quot-50-quot-is-being-retrieved-as-quot-so-quot/3658/3 "2015-11-29T17:05:09Z")

</div>

[quote=“JonathanOSX”]You’ll have better luck reading numbers if you specify

```auto
ValidCharacters: "0123456789"

```

That will specifically tell it you want it to try to read only those characters.

For ValidPattern you need to define an entire pattern of characters. Here you’ve only specified a single character. It is designed for things like User[0-9] to match User5 or User8 but not Users.[/quote]

Got it, thank Jonathan. nice to meet you before.
