Regexp::List(3pm)

πŸ“¦
version 0.23 Β· 2 versions
  • 0.23 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.23 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Regexp::List β€” the Perl manual page, bestie edition πŸ’–

okay so welcome to Regexp::List(3pm), a User Contributed Perl Documentation page, and honestly? It's giving legacy. Let's get into it 🫢


✨ NAME ✨

Regexp::List β€” Assemble multiple Regular Expressions into a single RE

No cap, that's the whole job description. Multiple regexes in, one regex out. Iconic behaviour, truly.


πŸŽ€ VERSION πŸŽ€

$Id: List.pm,v 0.20 2013/02/23 13:43:59 dankogai Exp $

πŸ’€ DEPRECATED πŸ’€

Use Regexp::Assemble instead.

That's it. That's the whole section. The module is lowkey retired and it is NOT being subtle about it. Bestie, if you're starting something new, go straight to Regexp::Assemble. πŸ™ˆ


🌸 SYNOPSIS 🌸

use Regexp::List;
my $rl = Regexp::List->new();
my @list = ( 'ab+c', 'ab+-',  'a\w\d+', 'a\d+' );
print $rl->list2re(@list);
# Regexp::Asssemble->new->add(@list);

(the Regexp::Asssemble with three s's in that comment? that's literally how it's written in the original, do not @ me 😭)


πŸ¦‹ DESCRIPTION πŸ¦‹

So the tea is: this module exists just for the sake of compatibility w/ version 0.16 and below. It's a nostalgia artifact. A little time capsule. It's not here to do new tricks, it's here so your old code doesn't break. Respect honestly. πŸ‘‘

✨ new

Just a stub.

Literally nothing happens. It's a placeholder wearing a trench coat. 🧚

✨ list2re

Simply does:

Regexp::Asssemble->new->add(@list);

That's the whole implementation. It just hands your list over to Regexp::Assemble and lets the grown-ups handle it. Delegation queen. πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

  • Regexp::Optimizer
  • Regexp::Assemble

🌈 AUTHOR 🌈

Dan Kogai, "<dankogai+cpan at gmail.com>"


πŸ“ BUGS πŸ“

Please report any bugs or feature requests to "bug-regexp-optimizer at rt.cpan.org", or through the web interface at:

<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Regexp-Optimizer>

I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

(the pipeline is giving "I got you bestie, you'll get the update fr fr" 🫢)


⭐ SUPPORT ⭐

You can find documentation for this module with the perldoc command.

perldoc Regexp::Optimizer

(no that is not a typo in my version, that is the actual command on the page β€” we keep it real here πŸ’œ)

You can also look for information at:


Copyright 2013 Dan Kogai.

This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at:

<http://www.perlfoundation.org/artistic_license_2_0>

okay legal besties, this next part is the actual license and I am NOT paraphrasing it, because legal text is not the place for vibes. Read every word. πŸ’…

Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license.

If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license.

This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder.

This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed.

Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


and that's the whole page, bestie πŸ’– mwah, take care of yourself, go use Regexp::Assemble, and remember: this one's just here for the old code πŸŽ€

signing off β€” this lovely little time capsule was rendered by perl v5.36.0, dated 2022-12-08, and it's officially the Regexp::List(3pm) page ✨ byeee 🌸