Regexp:...prospero(3)
β¨ NAME β¨
So this is Regexp::Common::URI::prospero (that's the Regexp:...prospero(3) manual page, bestie π
) β it hands you back a pattern for prospero URIs. That's it, that's the whole job. π
πΈ SYNOPSIS πΈ
use Regexp::Common qw /URI/;
while (<>) {
/$RE{URI}{prospero}/ and print "Contains a prospero URI.\n";
}
Like. That's literally the whole vibe. use the module, pull in the /URI/ tag, and then you can just drop $RE{URI}{prospero} into a regex like it's nothing. Main character pattern fr fr π
π¦ DESCRIPTION π¦
π $RE{URI}{prospero}
Okay so this one returns a pattern that matches prospero URIs β and not just any prospero URIs, the ones as defined by RFC 1738, so you know it's legit and not just making stuff up. β¨
prospero URIs are giving:
"prospero:" "//" host [ ":" port ] "/" path [ fieldspec ] *
And if you're rocking {-keep}, here's what gets handed back to you. Every capture, no gatekeeping, no cap π«Ά:
$1β the complete URI. The whole thing. Iconic.$2β the scheme.$3β the hostname.$4β the port, if one was given (it's optional, she's flexible π ).$5β the propero path.$6β the field specifications, if given. And heads up: there can be more than one field specification β but they all come back to you bundled up in$6, so don't go looking for a$7. π
π REFERENCES π
[RFC 1738]β Berners-Lee, Tim, Masinter, L., McCahill, M.: Uniform Resource Locators (URL). December 1994.
π SEE ALSO π
Regexp::Common::URIβ for all the other supported URIs, if prospero isn't your only fave π
π AUTHOR π
Abigail. (regexp-common@abigail.freedom.nl). Queen behaviour honestly πβ¨
π BUGS AND IRRITATIONS π
Bound to be plenty. π
(That's it. That's the whole section. She said what she said.)
πΈ 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.
Okay that's the page!! π§ Per the footer: this is perl v5.42.0, dated 2024-08-09, and it lives in the User Contributed Perl Documentation section. Slay, go write some regexes, ily, bye ππ¦β
π¦ 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