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.)


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:

  1. The Perl Artistic License. See the file COPYRIGHT.AL.
  2. The Perl Artistic License 2.0. See the file COPYRIGHT.AL2.
  3. The BSD License. See the file COPYRIGHT.BSD.
  4. 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