|
NAMEVenus::Search - Search Class ABSTRACTSearch Class for Perl 5 SYNOPSIS package main;
use Venus::Search;
my $search = Venus::Search->new(
string => 'hello world',
regexp => '(hello)',
);
# $search->captures;
DESCRIPTIONThis package provides methods for manipulating regexp search data. ATTRIBUTESThis package has the following attributes: flagsflags(Str) This attribute is read-write, accepts "(Str)" values, is optional, and defaults to ''. regexpregexp(Regexp) This attribute is read-write, accepts "(Regexp)" values, is optional, and defaults to "qr//". stringstring(Str) This attribute is read-write, accepts "(Str)" values, is optional, and defaults to ''. INHERITSThis package inherits behaviors from: Venus::Kind::Utility INTEGRATESThis package integrates behaviors from: Venus::Role::Explainable Venus::Role::Stashable METHODSThis package provides the following methods: capturescaptures() (arrayref) The captures method returns the capture groups from the result object which contains information about the results of the regular expression operation. This method can return a list of values in list-context. Since 0.01
countcount() (number) The count method returns the number of matches found in the result object which contains information about the results of the regular expression operation. Since 0.01
evaluateevaluate() (arrayref) The evaluate method performs the regular expression operation and returns an arrayref representation of the results. Since 0.01
explainexplain() (string) The explain method returns the subject of the regular expression operation and is used in stringification operations. Since 0.01
getget() (string) The get method returns the subject of the regular expression operation. Since 0.01
initialinitial() (string) The initial method returns the unaltered string from the result object which contains information about the results of the regular expression operation. Since 0.01
last_match_endlast_match_end() (maybe[within[arrayref, number]]) The last_match_end method returns an array of offset positions into the string where the capture(s) stopped matching from the result object which contains information about the results of the regular expression operation. Since 0.01
last_match_startlast_match_start() (maybe[within[arrayref, number]]) The last_match_start method returns an array of offset positions into the string where the capture(s) matched from the result object which contains information about the results of the regular expression operation. Since 0.01
matchedmatched() (maybe[string]) The matched method returns the portion of the string that matched from the result object which contains information about the results of the regular expression operation. Since 0.01
named_capturesnamed_captures() (hashref) The named_captures method returns a hash containing the requested named regular expressions and captured string pairs from the result object which contains information about the results of the regular expression operation. Since 0.01
postmatchedpostmatched() (maybe[string]) The postmatched method returns the portion of the string after the regular expression matched from the result object which contains information about the results of the regular expression operation. Since 0.01
prematchedprematched() (maybe[string]) The prematched method returns the portion of the string before the regular expression matched from the result object which contains information about the results of the regular expression operation. Since 0.01
setset(string $string) (string) The set method sets the subject of the regular expression operation. Since 0.01
ERRORSThis package may raise the following errors:
OPERATORSThis package overloads the following operators:
AUTHORSAwncorp, "awncorp@cpan.org" LICENSECopyright (C) 2022, Awncorp, "awncorp@cpan.org". This program is free software, you can redistribute it and/or modify it under the terms of the Apache license version 2.0.
|