| HTML-Widget documentation | Contained in the HTML-Widget distribution. |
HTML::Widget::Constraint::ASCII - ASCII Constraint
my $c = $widget->constraint( 'ASCII', 'foo' );
ASCII Constraint.
Provides a regex to validate ASCII text.
Sebastian Riedel, sri@oook.de
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
| HTML-Widget documentation | Contained in the HTML-Widget distribution. |
package HTML::Widget::Constraint::ASCII; use warnings; use strict; use base 'HTML::Widget::Constraint::Regex';
sub regex {qr/^[\x20-\x7E]*$/}
1;