PPIx::R...dCapture(3)

πŸ’– PPIx::Regexp::Structure::NamedCapture β€” the manual, but make it cute ✨

okay bestie, so this is the User Contributed Perl Documentation page for PPIx::Regexp::Structure::NamedCapture (section 3 of the manual, iykyk), and we are about to get so cozy with it. 🫢


🌸 NAME 🌸

PPIx::Regexp::Structure::NamedCapture β€” she represents a named capture. that's it, that's the job. πŸ’…


✨ SYNOPSIS ✨

use PPIx::Regexp::Dumper;
PPIx::Regexp::Dumper->new( 'qr{(?<foo>foo)}smx' )
    ->print();

like, look at her go. πŸ¦‹


🧬 INHERITANCE 🧬

PPIx::Regexp::Structure::NamedCapture is a PPIx::Regexp::Structure::Capture. so she inherited the whole family lore, periodt. πŸ‘‘

and PPIx::Regexp::Structure::NamedCapture has no descendants. she's the end of the line, the final girl, no little baby classes running around. 😭


πŸ’œ DESCRIPTION πŸ’œ

This class represents a named capture. and what does her content look like, you ask? bestie, it's giving one of these:

(?<NAME> ... )
(?'NAME' ... )
(?P<NAME> ... )

three whole flavors, all iconic, all valid. ✨


πŸŽ€ METHODS πŸŽ€

This class provides the following public methods, okay? Methods that are not documented here are private, and unsupported in the sense that the author reserves the right to change or remove them without notice. so like… don't build your whole personality on them, fr fr. πŸ’€

πŸ“ name

my $name = $element->name();

This method returns the name of the capture. that's the whole thing. one method, one name, no notes. πŸ™ˆ


🫢 SUPPORT 🫢

Support is by the author, no cap. Please file bug reports at:

<https://github.com/trwyant/perl-PPIx-Regexp/issues>

or in electronic mail to the author. they will literally see it. go off. 🌈


πŸ‘‘ AUTHOR πŸ‘‘

Thomas R. Wyant, III β€” harryfmudd at comcast dot net

the icon, the legend, the main character. πŸŽ€


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, we're yelling that part, because warranties are serious business bestie. 😭


and that's the whole page! πŸ¦‹ this lil' manual is from perl v5.42.2, dated 2026-06-15, and it lives on in the PPIx::Regexp docs forever and ever. stay slay, go parse some named captures, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from