Regexp:...:lingua(3)
π NAME π
okay so this is the Regexp:...:lingua(3) page from User Contributed Perl Documentation, and the star of the show is:
Regexp::Common::lingua β provide regexes for language related stuff. π
β¨ SYNOPSIS β¨
use Regexp::Common qw /lingua/;
while (<>) {
/^$RE{lingua}{palindrome}$/ and print "is a palindrome\n";
}
π¦ DESCRIPTION π¦
Bestie, please consult the manual of Regexp::Common for a general description of the works of this interface. It's giving βgo read the main character's manual first.β ππ
Do not use this module directly, but load it via Regexp::Common. fr fr, that's the rule. π«Ά
πΈ "$RE{lingua}{palindrome}" πΈ
Returns a pattern that recognizes a palindrome, a string that is the same if you reverse it. Literally the βtacocatβ of regexes. π±π
By default, it only matches strings consisting of letters, but this can be changed using the {-chars} option. This option takes a character class (default is [A-Za-z]) as argument. Slay. π
If {-keep} is used, only $1 will be set, and set to the entire match. Not me keeping track of exactly one capture group, but okay. π
This pattern requires at least perl 5.6.0. No cap. β
π SEE ALSO π
Regexp::Common for a general description of how to use this interface. iykyk. π
π AUTHOR π
Damian Conway (damian@conway.org). Iconic. π
π§ MAINTENANCE π§
This package is maintained by Abigail (regexp-common@abigail.freedom.nl). She's keeping it cute and maintained. π
π BUGS AND IRRITATIONS π
Many regexes are missing. Send them in to regexp-common@abigail.freedom.nl. Like, if you have a regex, send it in bestie β the collection is lowkey incomplete. π
π LICENSE and COPYRIGHT π
This software is Copyright (c) 2001 - 2024, Damian Conway and Abigail.
This module is free software, and may be 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 bye bestie β this page's footer energy is perl v5.42.0, dated 2024-08-09 πβ¨
π¦ 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