Badger...attern(3pm)

πŸ“¦
version 0.16 Β· 4 versions
, in debian trixie, ubuntu noble, ubuntu resolute

✨ Badger::Data::Facet::Text::Pattern ✨

okay bestie, so this is a page from the User Contributed Perl Documentation collection, and it's all about Badger::Data::Facet::Text::Pattern πŸ’… buckle up, it's actually so good


🌸 NAME 🌸

Badger::Data::Facet::Text::Pattern β€” it's a validation facet for text pattern match, no cap πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

So like, this module implements a validation facet (yes, facets, plural vibes) whose whole entire job is to assert that a text value matches a regular expression pattern 🌈

that's it. that's the whole personality. she checks that your text matches the regex and she does it flawlessly. periodt πŸ‘‘


πŸŽ€ METHODS πŸŽ€

This module implements the following method in addition to the ones it inherits from the base classes β€” and those base classes are:

  • Badger::Data::Facet::Text
  • Badger::Data::Facet
  • Badger::Base

so she's got family, she's got inheritance, she's got main character energy fr fr 🫢

πŸ’œ validate($text_ref, $type) πŸ’œ

This method validates that the text passed by reference as the first argument matches the pre-defined regular expression pattern ✨

okay so listen β€” the first arg is a reference to the text, not the text itself. don't come for me, that's just how she works πŸ™ˆ

πŸ‘‘ AUTHOR πŸ‘‘

Andy Wardley <http://wardley.org/> β€” iconic, legendary, we stan πŸ’–


Copyright (C) 2001-2012 Andy Wardley. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. πŸ“


⭐ SEE ALSO ⭐

go check out her besties:

  • Badger::Base
  • Badger::Data::Facet
  • Badger::Data::Facet::Text

and that's the whole page, bestie 🧚✨

cute little sign-off for you: this was documented for perl v5.36.0, dated 2023-08-28, and the manual page goes by Badger...attern(3pm) πŸ’… slay, bye πŸ¦‹πŸ’–

πŸ“¦ where this page comes from