PPIx::R...re::Main(3)
π PPIx::Regexp::Structure::Main π
okay bestie, so this is a page from the User Contributed Perl Documentation, and the module it's yelling about is PPIx::Regexp::Structure::Main π β it's in the PPIx::Regexp family, it's giving parser internals, it's giving abstract class realness.
β¨ NAME β¨
PPIx::Regexp::Structure::Main β bestie, this one represents a regular expression proper, or a substitution. that's the whole job. that's the vibe. π
πΈ SYNOPSIS πΈ
like, here's how you'd actually touch this thing:
use PPIx::Regexp::Dumper;
PPIx::Regexp::Dumper->new( 'qr{foo}smx' )
->print();
look at that little qr{foo}smx go π¦ it's literally the cutest regex in the whole wide world.
π§ INHERITANCE π§
PPIx::Regexp::Structure::Mainis aPPIx::Regexp::Structure. periodt.PPIx::Regexp::Structure::Mainis the parent ofPPIx::Regexp::Structure::RegexpandPPIx::Regexp::Structure::Replacement. it's mother, fr fr π
π DESCRIPTION π
so this class is abstract, which means you don't just, like, instantiate it and go. it represents one of the top-level structures in the expression. and both PPIx::Regexp::Structure::Regexp and PPIx::Regexp::Structure::Replacement are derived from it. main character energy, but like, the parent kind. π
π METHODS π
this class provides the following public methods. anything not documented here is private, and unsupported in the sense that the author reserves the right to change or remove them without notice. so like, don't get attached to undocumented methods, bestie π
π delimiters
this method returns a string representing the delimiters of a regular expression or substitution string. so in the case of something like s/foo/bar/, it will return '//' for both the regular expression and the replacement. both!! equal treatment!! we love to see it π
π interpolates
this method returns true if the regular expression or replacement interpolates, and false otherwise. and ngl, all it really does is check whether the ending delimiter is a single quote. that's it. that's the whole method. lowkey iconic for how simple it is π¦
π«Ά SUPPORT π«Ά
support is by the author, bestie. so if something's busted, please file bug reports at <https://github.com/trwyant/perl-PPIx-Regexp/issues> β or in electronic mail to the author. don't suffer in silence, that's not the vibe π
π AUTHOR π
Thomas R. Wyant, III β harryfmudd at comcast dot net β¨
π COPYRIGHT AND LICENSE π
Copyright (C) 2009-2023, 2025-2026 by Thomas R. Wyant, III
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. (yes bestie, that's the legal way of saying "no promises, good luck" π)
okay that's the whole page, nothing skipped, every option-less method accounted for, we ate and left no crumbs π½οΈβ¨
and that's a wrap! this was pulled from perl v5.42.2, dated 2026-06-15 π go forth and parse some regexes, bestie π§ββοΈπΈ
π¦ where this page comes from
- fedora 43: perl-PPIx-Regexp 0.092-1.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- fedora 44: perl-PPIx-Regexp 0.092-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms