How to Install and Uninstall libregexp-grammars-perl Package on Ubuntu 21.10 (Impish Indri)

Last updated: April 28,2024

1. Install "libregexp-grammars-perl" package

This is a short guide on how to install libregexp-grammars-perl on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install libregexp-grammars-perl

2. Uninstall "libregexp-grammars-perl" package

In this section, we are going to explain the necessary steps to uninstall libregexp-grammars-perl on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove libregexp-grammars-perl $ sudo apt autoclean && sudo apt autoremove

3. Information about the libregexp-grammars-perl package on Ubuntu 21.10 (Impish Indri)

Package: libregexp-grammars-perl
Architecture: all
Version: 1.057-1
Priority: optional
Section: universe/perl
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Perl Group
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 862
Depends: libb-hooks-parser-perl (>= 0.16), perl (>= 5.20) | perl (<< 5.18), perl:any
Filename: pool/universe/libr/libregexp-grammars-perl/libregexp-grammars-perl_1.057-1_all.deb
Size: 255516
MD5sum: 3c99158191825c5549581a277adfe51b
SHA1: 33dfcfdf33313f71fdf356e8798149dbab643410
SHA256: a1b00cc508f16ba05abcdd499b42fefee13f1dae9ca39f372f78428e8fc92604
SHA512: de83424ad401188c532b5a358430ab1fa381b42f2b05365cc4811f552514c7258042a54094adaa79ef7177f4c38e250f6be0bd593eb6e3b7458ade699e0602b8
Homepage: https://metacpan.org/release/Regexp-Grammars
Description-en: Perl module to add grammatical parsing features to Perl 5.10 regexes
Regexp::Grammars adds a small number of new regex constructs that can be used
within Perl 5.10 patterns to implement complete recursive-descent parsing.
.
Perl 5.10 already supports recursive=descent matching, via the new
(?...) and (?&name) constructs. This technique makes it possible
to use regexes to recognize complex, hierarchical--and even recursive--
textual structures. The problem is that Perl 5.10 doesn't provide any
support for extracting that hierarchical data into nested data
structures. In other words, using Perl 5.10 you can match complex data,
but not parse it into an internally useful form.
.
An additional problem when using Perl 5.10 regexes to match complex
data formats is that you have to make sure you remember to insert whitespace-
matching constructs (such as \s*) at every possible position where the
data might contain ignorable whitespace. This reduces the readability
of such patterns, and increases the chance of errors (typically caused
by overlooking a location where whitespace might appear).
.
The Regexp::Grammars module solves both those problems.
Description-md5: 726e098899d4a7fbdb4d0558679e35c7