Skip to content
Snippets Groups Projects
Regexp.pm 310 B
Newer Older
package AccountManager::Regexp;

use Mojo::Base -base;

our $email = qr/
    ^
    [\w\-.+=]+
    @
    (?:[\w-]+\.)+  # at least one name component
    [a-zA-Z]{1,63} # one mandatory tld
    $
/x;

our $entityid = qr/
    ^
    (?:
        https?:\/\/[\w.:\/-]+
    |
        urn:[\w.:-]+
    )
    $
/x;

1;