---
name: "HTML::Widget::Constraint::Regex"
section: "3pm"
platform: "linux"
package: "libhtml-widget-perl"
version: "1.11-7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/HTML::Widget::Constraint::Regex"
---

# HTML::Widget::Constraint::Regex(3pm)

Regex Constraint

## NAME

HTML::Widget::Constraint::Regex - Regex Constraint

## SYNOPSIS

```
    my $c = $widget->constraint( 'Regex', 'foo' );
    $c->regex(qr/^\w+$/);
```

## DESCRIPTION

Regex Constraint.

The Regex constraint always allows an `"undef"` value or an empty string.  If you don't want this behaviour, also use the  HTML::Widget::Constraint::All.

## METHODS

### regex

Arguments: qr/ regex /

### validate

## AUTHOR

Sebastian Riedel, `"sri@oook.de"`

## LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
