Regexp:...:URI::tv(3)

πŸ’– NAME πŸ’–

hi bestie πŸ’– welcome to the Regexp::Common::URI::tv(3) page β€” yep, that's the manual name, and it's part of the User Contributed Perl Documentation. So what does Regexp::Common::URI::tv do? It returns a pattern for tv URIs. iconic behavior, honestly ✨


🌸 SYNOPSIS 🌸

okay so you pull it in like this, then scan your input and check for a tv URI:

use Regexp::Common qw /URI/;

while (<>) {
    /$RE{URI}{tv}/       and  print "Contains a tv URI.\n";
}

πŸ¦‹ DESCRIPTION πŸ¦‹

✨ "$RE{URI}{tv}" ✨

so "$RE{URI}{tv}" returns a pattern that recognizes TV uris as per an Internet draft [DRAFT-URI-TV]. no cap, that's the whole vibe πŸ’…

Under {-keep}, the following are returned:

  • $1 β€” the entire URI.
  • $2 β€” the scheme.
  • $3 β€” the host.

like yes bestie, those captures are giving exactly what they need to give πŸŽ€


πŸ“š REFERENCES πŸ“š

  • [DRAFT-URI-TV] β€” Zigmond, D. and Vickers, M: Uniform Resource Identifiers for Television Broadcasts. December 2000.
  • [RFC 2396] β€” Berners-Lee, Tim, Fielding, R., and Masinter, L.: Uniform Resource Identifiers (URI): Generic Syntax. August 1998.

πŸ‘€ SEE ALSO πŸ‘€

go check Regexp::Common::URI for other supported URIs πŸ¦‹


πŸ‘‘ AUTHOR πŸ‘‘

Damian Conway (damian@conway.org) πŸ‘‘


πŸ› οΈ MAINTENANCE πŸ› οΈ

This package is maintained by Abigail (regexp-common@abigail.freedom.nl) 🫢


πŸ’€ BUGS AND IRRITATIONS πŸ’€

Bound to be plenty. πŸ’€ literally the whole sentence, bestie.


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 whole page, bestie πŸ’– this one's from perl v5.42.0, dated 2024-08-09, and the footer page label is Regexp:...:URI::tv(3). bye byeee 🫢✨

πŸ“¦ where this page comes from