1Regexp::Assemble::ComprUessesredC(o3n)tributed Perl DocuRmeegnetxapt:i:oAnssemble::Compressed(3)
2
3
4
6 Regexp::Assemble::Compressed - Assemble more compressed Regular
7 Expression
8
10 use Regexp::Assemble::Compressed;
11
12 my $ra = Regexp::Assemble::Compressed->new;
13 my @cctlds = qw(ma mc md me mf mg mh mk ml mm mn mo mp
14 mq mr ms mt mu mv mw mx my mz);
15 for my $tld ( @cctlds ) {
16 $ra->add( $tld );
17 }
18 print $ra->re; # prints m[ac-hk-z].
19 # Regexp::Assemble prints m[acdefghklmnopqrstuvwxyz]
20
22 Regexp::Assemble::Compressed is a subclass of Regexp::Assemble. It
23 assembles more compressed regular expressions.
24
26 Koichi Taniguchi <taniguchi@livedoor.jp>
27
29 This library is free software; you can redistribute it and/or modify it
30 under the same terms as Perl itself.
31
33 Regexp::Assemble
34
35
36
37perl v5.28.0 2010-09-13 Regexp::Assemble::Compressed(3)