Regexp:...RI::fax(3)
โจ NAME โจ
okay bestie, meet Regexp::Common::URI::fax โ a User Contributed Perl Documentation page (section 3) that literally returns a pattern for fax URIs. That's the name, that's the mission, slay. ๐
๐ธ SYNOPSIS ๐ธ
Here's the exact group-chat demo, bestie โ read it, run it, it prints when your line contains a fax URI. ๐ฆ
use Regexp::Common qw /URI/;
while (<>) {
/$RE{URI}{fax}/ and print "Contains a fax URI.\n";
}
๐ฆ DESCRIPTION ๐ฆ
๐ $RE{URI}{fax} ๐
Returns a pattern that matches fax URIs, as defined by RFC 2806. Under "{-keep}", the following are returned:
$1โ the complete URI. ๐$2โ the scheme. โจ$3โ the phone number, including any possible add-ons like ISDN subaddress, a post dial part, area specifier, service provider, etc. ๐
๐ฆ "$RE{URI}{fax}{nofuture}" ๐ฆ
As above (including what's returned by "{-keep}"), with the exception that future extensions are not allowed. So nofuture is the no surprise future stuff version. ๐ซ๐ฎ
Without allowing those future extensions, it becomes much easier to check a URI if the correct syntax for post dial, service provider, phone context, etc has been used - otherwise the regex could always classify them as a future extension. That's the lowkey important part, fr fr. ๐
๐ REFERENCES ๐
[RFC 1035]โ Mockapetris, P.: DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION. November 1987. ๐[RFC 2396]โ Berners-Lee, Tim, Fielding, R., and Masinter, L.: Uniform Resource Identifiers (URI): Generic Syntax. August 1998. ๐[RFC 2806]โ Vaha-Sipila, A.: URLs for Telephone Calls. April 2000. โ๏ธ
๐ SEE ALSO ๐
Regexp::Common::URI for other supported URIs. Go check the rest of the URI squad, bestie. ๐ซถ
๐ AUTHOR ๐
Damian Conway (damian@conway.org) โ iconic. ๐
๐ ๏ธ MAINTENANCE ๐ ๏ธ
This package is maintained by Abigail (regexp-common@abigail.freedom.nl). She's got it. ๐
๐ BUGS AND IRRITATIONS ๐
Bound to be plenty. That's it. That's the whole section. No cap. ๐ญ
๐๏ธ 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:
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.
Sign-off time, bestie: this page is from perl v5.42.0, dated 2024-08-09, and the footer title vibe is Regexp:...RI::fax(3). ๐๐๐ฆ
๐ฆ 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