# TextValidator problem

**URL:** <https://www.ruby-forum.com/t/textvalidator-problem/170865>\
**Category:** wxRuby\
**Created:** [June 23, 2009, 6:54pm UTC](https://www.ruby-forum.com/t/textvalidator-problem/170865 "2009-06-23T18:54:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luciano\_Zanotto](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/a88e57/32.png) [@Luciano\_Zanotto](https://www.ruby-forum.com/u/Luciano_Zanotto)\
**Post date:** [June 23, 2009, 6:54pm UTC](https://www.ruby-forum.com/t/textvalidator-problem/170865/1 "2009-06-23T18:54:26Z")

</div>

I’m really sorry, but sometimes I feel just I’m a little bit dumb… and  
this is the case. I’m stiil using the TextValidator class. If I use the  
standard filtering options much of the characters normally used are  
filtered out. The Wx::FILTER\_ALPHANUMERIC option filters out anything  
which is not [a-z], [A-Z] or [0-9]. It would be nice to use dots, bars  
and underscores too, so I thought to call the set\_includes method, but  
with no result. Can anyone tell me which kind of parameter should I pass  
to set\_includes? Can anyone give me few lines of working code?  
Thanks in advance to anyone  
Luciano
