PPIx::R...ssertion(3)
π PPIx::Regexp::Token::GroupType::Assertion(3) π
okay bestie, welcome to the User Contributed Perl Documentation page for PPIx::Regexp::Token::GroupType::Assertion β and yes that name is a whole mouthful, we know, we've been pronouncing it wrong in our heads for months. it's giving β¨regex internalsβ¨ and honestly? iconic.
π NAME π
PPIx::Regexp::Token::GroupType::Assertion β it represents a look ahead or a look behind assertion, periodt. π
β¨ SYNOPSIS β¨
here's the vibe, fr fr:
use PPIx::Regexp::Dumper;
PPIx::Regexp::Dumper->new( 'qr{foo(?=bar)}smx' )
->print();
like, that's it. that's the whole flex. π¦
πΈ INHERITANCE πΈ
PPIx::Regexp::Token::GroupType::Assertion is a PPIx::Regexp::Token::GroupType. so it's got the family tree going on, iykyk. π«Ά
and it has no descendants β this one is a leaf, bestie, the end of the line, no kids, no heirs, just vibes. π
π DESCRIPTION π
so basically this class represents the parenthesized look ahead and look behind assertions. the (?=...) and (?<=...) girlies. those. it's them. π
π METHODS π
this class provides the following public methods beyond those provided by its superclass. so like, these are the extra ones. the bonus content. the director's cut. π¬
β is_look_ahead β
this method returns a true value if the assertion is a look-ahead assertion, or a false value if it's a look-behind assertion. two moods, one method, no notes. β¨
π is_positive π
this method returns a true value if the assertion is a positive assertion, or a false value if it's a negative assertion. positive queen energy vs negative queen energy, and both are valid. π
π«Ά SUPPORT π«Ά
support is by the author. if something's broken, please file bug reports at <https://github.com/trwyant/perl-PPIx-Regexp/issues> or slide into the author's electronic mail. don't be shy, they want to know. π
π 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.
ngl that last bit is the legal way of saying "no promises bestie" and we respect the honesty fr fr π§
and that's the whole page, babes. perl v5.42.2, dated 2026-06-15 β go forth and assert your look-aheads, mwah π πΈπ
π¦ 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