1PPI::Token::Regexp::MatUcshe(r3)Contributed Perl DocumenPtPaIt:i:oTnoken::Regexp::Match(3)
2
3
4
6 PPI::Token::Regexp::Match - A standard pattern match regex
7
9 PPI::Token::Regexp::Match
10 isa PPI::Token::Regexp
11 isa PPI::Token
12 isa PPI::Element
13
15 $text =~ m/match regexp/;
16 $text =~ /match regexp/;
17
19 A "PPI::Token::Regexp::Match" object represents a single match regular
20 expression. Just to be doubly clear, here are things that are and
21 aren't considered a match regexp.
22
23 # Is a match regexp
24 /This is a match regexp/;
25 m/Old McDonald had a farm/eieio;
26
27 # These are NOT match regexp
28 qr/This is a regexp quote-like operator/;
29 s/This is a/replace regexp/;
30
32 There are no methods available for "PPI::Token::Regexp::Match" beyond
33 those provided by the parent PPI::Token::Regexp, PPI::Token and
34 PPI::Element classes.
35
37 See the support section in the main module.
38
40 Adam Kennedy <adamk@cpan.org>
41
43 Copyright 2001 - 2011 Adam Kennedy.
44
45 This program is free software; you can redistribute it and/or modify it
46 under the same terms as Perl itself.
47
48 The full text of the license can be found in the LICENSE file included
49 with this module.
50
51
52
53perl v5.32.1 2021-01-27 PPI::Token::Regexp::Match(3)