1Regexp::Common::lingua(U3s)er Contributed Perl DocumentatRieognexp::Common::lingua(3)
2
3
4
6 Regexp::Common::lingua -- provide regexes for language related stuff.
7
9 use Regexp::Common qw /lingua/;
10
11 while (<>) {
12 /^$RE{lingua}{palindrome}$/ and print "is a palindrome\n";
13 }
14
16 Please consult the manual of Regexp::Common for a general description
17 of the works of this interface.
18
19 Do not use this module directly, but load it via Regexp::Common.
20
21 $RE{lingua}{palindrome}
22 Returns a pattern that recognizes a palindrome, a string that is the
23 same if you reverse it. By default, it only matches strings consisting
24 of letters, but this can be changed using the "{-chars}" option. This
25 option takes a character class (default is "[A-Za-z]") as argument.
26
27 If "{-keep}" is used, only $1 will be set, and set to the entire match.
28
29 This pattern requires at least perl 5.6.0.
30
32 Regexp::Common for a general description of how to use this interface.
33
35 Damian Conway (damian@conway.org)
36
38 This package is maintained by Abigail (regexp-common@abigail.be).
39
41 Many regexes are missing. Send them in to regexp-common@abigail.be.
42
44 This software is Copyright (c) 2001 - 2017, Damian Conway and Abigail.
45
46 This module is free software, and maybe used under any of the following
47 licenses:
48
49 1) The Perl Artistic License. See the file COPYRIGHT.AL.
50 2) The Perl Artistic License 2.0. See the file COPYRIGHT.AL2.
51 3) The BSD License. See the file COPYRIGHT.BSD.
52 4) The MIT License. See the file COPYRIGHT.MIT.
53
54
55
56perl v5.34.0 2021-07-22 Regexp::Common::lingua(3)