Regexp:...RI::pop(3)
π Regexp::Common::URI::pop β the POP URI pattern bestie π
okay so real talk, this is the Regexp::Common::URI::pop manual page, and it's literally here to hand you a regex for POP URIs β¨
πΈ NAME πΈ
Regexp::Common::URI::pop β Returns a pattern for POP URIs. Yes bestie, that's the whole job and it ate π
π¦ SYNOPSIS π¦
Like, here's how you'd actually use it in real life:
use Regexp::Common qw /URI/;
while (<>) {
/$RE{URI}{POP}/ and print "Contains a POP URI.\n";
}
So you pull in Regexp::Common with qw /URI/, then when you're looping through input, matching /$RE{URI}{POP}/ means you print Contains a POP URI. β iconic, no cap π₯
β¨ DESCRIPTION β¨
π $RE{URI}{POP}
Returns a pattern that matches POP URIs, as defined by RFC 2384. POP URIs have the form:
"pop:" "//" [ user [ ";AUTH" ( "*" | auth_type ) ] "@" ]
host [ ":" port ]
That's the shape of it, bestie β the user part and the ";AUTH" bit are optional (and the auth type after it can be a * or an auth_type), and the port at the end is optional too π«Ά
Under {-keep}, the following are returned:
$1β The complete URI.$2β The scheme.$3β The user, if given.$4β The authentication type, if given (could be a*).$5β The host.$6β The port, if given.
So like, six little capture besties, all lined up, all doing their thing π
π REFERENCES π
- [RFC 2384] β Gellens, R.: POP URL Scheme. August 1998.
That's the source of truth, the moment, the main character document ππ
π SEE ALSO π
Regexp::Common::URI for other supported URIs. Go check it out, there's a whole friend group of URI patterns over there π
π AUTHOR π
Abigail. (regexp-common@abigail.freedom.nl).
π BUGS AND IRRITATIONS π
Bound to be plenty.
Not me saying that β that's literally what the page says π and honestly? relatable. But fr fr, that's the stated situation, so there you go.
π LICENSE and COPYRIGHT π
This software is Copyright (c) 2001 - 2024, Damian Conway and Abigail.
This module is free software, and maybe used under any of the following licenses:
- The Perl Artistic License. See the file
COPYRIGHT.AL. - The Perl Artistic License 2.0. See the file
COPYRIGHT.AL2. - The BSD License. See the file
COPYRIGHT.BSD. - The MIT License. See the file
COPYRIGHT.MIT.
Pick your fave, they're all valid, and every one of those COPYRIGHT.* files is out there waiting for you π
omg and just so you know where this whole vibe came from: this is perl v5.42.0, dated 2024-08-09, and the page itself is Regexp:...RI::pop(3) π
β¨ mwah, go forth and match some POP URIs, bestie π¦
π¦ where this page comes from
- opensuse-leap 16.0: perl-Regexp-Common 2024080801.0.0-160000.2.2 Β· Artistic-1.0 OR Artistic-2.0 OR BSD-3-Clause OR MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms