PPIx::R...eediness(3)
π PPIx::Regexp::Token::Greediness β bestie's guide π
okay so this is the PPIx::Regexp::Token::Greediness page, part of the User Contributed Perl Documentation situation, and honestly? it's a lil icon and I'm obsessed. sit down, grab a strawberry π, let's get into it.
β¨ NAME β¨
PPIx::Regexp::Token::Greediness β the class that represents a greediness qualifier. that's it, that's the whole vibe. it's giving "small but mighty". π
πΈ SYNOPSIS πΈ
here's how you'd actually use it, fr fr:
use PPIx::Regexp::Dumper;
PPIx::Regexp::Dumper->new( 'qr{foo*+}smx' )
->print();
look at that *+ sitting there being greedy. main character energy. π
π¦ INHERITANCE π¦
"PPIx::Regexp::Token::Greediness"is aPPIx::Regexp::Token. so it's got a parent, it's got lineage, it's got a whole family tree moment. π³"PPIx::Regexp::Token::Greediness"has no descendants. no kids, no heirs, it's an only child. respect. π
π DESCRIPTION π
so basically β this class represents a greediness qualifier for the quantifier that comes right before it. that's the entire job description. it's the lil + or ? that changes how hungry your quantifier is. not me thinking about how much power that is. π
π₯ METHODS π₯
this class is serving the following public methods, bestie. and listen β methods that aren't documented here are private, unsupported, and the author reserves the right to change or remove them without notice. so likeβ¦ don't get attached to the undocumented ones, they could ghost you at any time. π
π could_be_greediness
PPIx::Regexp::Token::Greediness->could_be_greediness( '?' );
this method returns true if the string you handed it could be a greediness indicator β meaning, if it's '+' or '?'. that's it. those are the only two that pass the vibe check. β
π«Ά SUPPORT π«Ά
support is by the author, periodt. if something's broken (π) please file bug reports at:
<https://github.com/trwyant/perl-PPIx-Regexp/issues>
or in electronic mail to the author. they want to hear from you, fr.
π AUTHOR π
Thomas R. Wyant, III β harryfmudd at comcast dot net. the legend themselves. π
π 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. (translation: no promises, bestie, it's giving "as-is" π)
okay that's the whole page!! this was PPIx::Regexp::Token::Greediness, documented for perl v5.42.2, dated 2026-06-15. thanks for reading my lil manual rant, ily, go write some regexes π¦β¨π
π¦ 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