PPIx::R...sertion(3)

🌸 PPIx::R...sertion(3) 🌸

okay bestie, welcome to the User Contributed Perl Documentation for PPIx::Regexp::Token::Assertion πŸ’– yes the man page name is literally abbreviated like that, it's giving mystery, it's giving ellipsis, we love her for it.


✨ NAME ✨

PPIx::Regexp::Token::Assertion β€” the class that represents a simple assertion. that's it, that's the whole vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

use PPIx::Regexp::Dumper;
PPIx::Regexp::Dumper->new( 'qr{\bfoo\b}smx' )
    ->print();

look at her go ✨ dump a regex, see the assertion tokens pop out, slay.


πŸ’… INHERITANCE πŸ’…

PPIx::Regexp::Token::Assertion is a PPIx::Regexp::Token. found family, iconic lineage πŸ‘‘

PPIx::Regexp::Token::Assertion has no descendants. she's a leaf node, a final girl, nobody inherits from her. periodt.


πŸ”₯ DESCRIPTION πŸ”₯

so this class represents one of the simple assertions β€” meaning the ones that are not defined via parentheses. no parens, no drama, just vibes. this includes the zero-width assertions "^", "$", "\b", "\B", "\A", "\Z", "\z" and "\G", plus these extra little icons:

  • the "\z" assertion, added in Perl 5.005 ✨
  • the "\K" assertion, added in Perl 5.009005 πŸ”₯
  • the "\b{gcb}" assertion (and friends) added in Perl 5.021009 🫢
ngl, similar braced constructions (like "\b{foo}") are unknown tokens. so don't come for her with a random "\b{foo}" and expect it to be recognized, bestie, it is not πŸ’€

πŸŽ€ METHODS πŸŽ€

this class provides no public methods beyond those provided by its superclass. she's low-maintenance like that πŸ’– everything you need, her parent already had it.

⭐ is_matcher ⭐

this method returns a true value because an assertion actually matches something. yes queen, she is a matcher, no cap πŸ‘‘


🌈 SUPPORT 🌈

support is by the author. so if something's broken, 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, bestie, that's not the move 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Thomas R. Wyant, III β€” harryfmudd at comcast dot net πŸ’Œ


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.

fr fr, no warranty, so don't come crying to the author if it does a chaos 😭

and that's the whole page, bestie πŸ¦‹ this was perl v5.42.2, dated 2026-06-15, and you just read the PPIx::R...sertion(3) man page top to bottom like a main character. mwah πŸ’…πŸ’–

πŸ“¦ where this page comes from