.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Text::Query::SolveAdvancedString 3" .TH Text::Query::SolveAdvancedString 3 2024-07-13 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Text::Query::SolveAdvancedString \- Apply query expression on strings .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 5 \& use Text::Query; \& my $q=new Text::Query(\*(Aqhello and world\*(Aq, \& \-parse => \*(AqText::Query::ParseAdvanced\*(Aq, \& \-solve => \*(AqText::Query::SolveAdvancedString\*(Aq, \& \-build => \*(AqText::Query::BuildAdvancedString\*(Aq); \& \& $q\->match(\*(Aqthis hello is a world\*(Aq) .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" Applies an expression built by \&\f(CW\*(C`Text::Query::BuildAdvancedString\*(C'\fR to a list of strings. .SH METHODS .IX Header "METHODS" .IP "match ([TARGET])" 4 .IX Item "match ([TARGET])" If \f(CW\*(C`TARGET\*(C'\fR is a scalar, \f(CW\*(C`match\*(C'\fR returns a true value if the string specified by \f(CW\*(C`TARGET\*(C'\fR matches the query object's query expression. If \&\f(CW\*(C`TARGET\*(C'\fR is not given, the match is made against \f(CW$_\fR. .Sp If \f(CW\*(C`TARGET\*(C'\fR is an array, \f(CW\*(C`match\*(C'\fR returns a (possibly empty) list of all matching elements. If the elements of the array are references to sub\- arrays, the match is done against the first element of each sub-array. This allows arbitrary information (e.g. filenames) to be associated with each string to match. .Sp If \f(CW\*(C`TARGET\*(C'\fR is a reference to an array, \f(CW\*(C`match\*(C'\fR returns a reference to a (possibly empty) list of all matching elements. .IP "matchscalar ([TARGET])" 4 .IX Item "matchscalar ([TARGET])" Behaves just like \f(CW\*(C`MATCH\*(C'\fR when \f(CW\*(C`TARGET\*(C'\fR is a scalar or is not given. Slightly faster than \f(CW\*(C`MATCH\*(C'\fR under these circumstances. .SH AUTHORS .IX Header "AUTHORS" Eric Bohlman (ebohlman@netcom.com) .PP Loic Dachary (loic@senga.org) .SH "POD ERRORS" .IX Header "POD ERRORS" Hey! \fBThe above document had some coding errors, which are explained below:\fR .IP "Around line 104:" 4 .IX Item "Around line 104:" You forgot a '=back' before '=head1'