NAME

Data::Format::Validate - A data validating module.

SYNOPSIS

Module that validate data like URL and IP addresses.

UTILITIES

Any E-mail
    use Data::Format::Validate::Email 'looks_like_any_email';

    looks_like_any_email 'rozcovo@cpan.org';    # returns 1
    looks_like_any_email 'rozcovo@cpan. org';   # returns 0
Common E-mail
    use Data::Format::Validate::Email 'looks_like_common_email';

    looks_like_common_email 'rozcovo@cpan.org';     # returns 1
    looks_like_common_email 'rozcovo.@cpan.org';    # returns 0
IP (ipv4)
    use Data::Format::Validate::IP 'looks_like_ipv4';

    looks_like_ipv4 '127.0.0.1';    # returns 1
    looks_like_ipv4 '255255255255'; # returns 0
IP (ipv6)
    use Data::Format::Validate::IP 'looks_like_ipv6';

    looks_like_ipv6 '1762:0:0:0:0:B03:1:AF18';  # returns 1
    looks_like_ipv6 '17620000AFFFB031AF187';    # returns 0
Any URL
    use Data::Format::Validate::URL 'looks_like_any_url';

    looks_like_any_url 'duckduckgo.com';    # returns 1
    looks_like_any_url 'www. duckduckgo';   # returns 0
Only full URL
    use Data::Format::Validate::URL 'looks_like_full_url';

    looks_like_full_url 'http://www.duckduckgo.com/search?q=perl';  # returns 1
    looks_like_full_url 'http://duckduckgo.com';                    # returns 0
URN
    use Data::Format::Validate::URN 'looks_like_urn';

    looks_like_urn 'urn:oid:2.16.840';          # returns 1
    looks_like_urn 'This is not a valid URN';   # returns 0
    

CONTRIBUITION

This source is on Github:

        https://github.com/rozcovo/Data-Format-Validate

AUTHOR

Created by Israel Batista <rozcovo@cpan.org>