??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 178
package Regexp::Common::URI::http;
use Regexp::Common qw /pattern clean no_defaults/;
use Regexp::Common::URI qw /register_uri/;
use Regexp::Common::URI::RFC2396 qw /$host $port $path_segments $query/;
use strict;
use warnings;
use vars qw /$VERSION/;
$VERSION = '2010010201';
my $http_uri = "(?k:(?k:http)://(?k:$host)(?::(?k:$port))?" .
"(?k:/(?k:(?k:$path_segments)(?:[?](?k:$query))?))?)";
my $https_uri = $http_uri; $https_uri =~ s/http/https?/;
register_uri HTTP => $https_uri;
pattern name => [qw (URI HTTP), "-scheme=http"],
create => sub {
my $scheme = $_ [1] -> {-scheme};
my $uri = $http_uri;
$uri =~ s/http/$scheme/;
$uri;
}
;
1;
__END__
=pod
=head1 NAME
Regexp::Common::URI::http -- Returns a pattern for HTTP URIs.
=head1 SYNOPSIS
use Regexp::Common qw /URI/;
while (<>) {
/$RE{URI}{HTTP}/ and print "Contains an HTTP URI.\n";
}
=head1 DESCRIPTION
=head2 $RE{URI}{HTTP}{-scheme}
Provides a regex for an HTTP URI as defined by RFC 2396 (generic syntax)
and RFC 2616 (HTTP).
If C<< -scheme => I
>> is specified the pattern I
is used as the scheme. By default I
is C